Home Dashboard Directory Help
Search

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


Status: 

Closed
 as Fixed Help for as Fixed


16
0
Sign in
to vote
Type: Bug
ID: 779439
Opened: 2/18/2013 7:11:48 AM
Access Restriction: Public
0
Workaround(s)
view
6
User(s) can reproduce this bug

Description

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?
Details
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 }
}
Sign in to post a workaround.