foreach doesn't work with 'Set-PSDebug -trace 1' in PS3 - by sba

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 779439 Comments
Status Closed Workarounds
Type Bug Repros 6
Opened 2/18/2013 7:11:48 AM
Access Restriction Public


If 'Set-PSDebug -trace 1' is in action, 'foreach' doesn't work (does nothing) in PS3.

IMVHO that's definitely a bug.

Can we expect a fix or at least a workaround?
Sign in to post a comment.
Posted by sba on 10/21/2013 at 5:11 AM
I just found out that this is fixed in PS4.0, available in Windows 8.1.

Will a fix for PS3 be available, given that PS4.0 will never (?) be available for Windows Embedded 8 Standard?
Posted by Joel 'Jaykul' Bennett on 8/1/2013 at 8:39 PM
And it doesn't work with -Trace 2 either
Posted by Joel 'Jaykul' Bennett on 8/1/2013 at 8:37 PM
This also doesn't work!

switch($true) {
$true { $Value = 11111; write-host $Value }
$false { $Value = 22222; write-host $Value }