You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I embed a write-progress inside of a for loop, it works properly.
But if I'm trying to use write-progress to indicate progress within just a sequence of commands in a script... no dice.
In Windows Powershell, I use this frequently so I can have the master progress bar show which phase of the script I'm in, and the sub-progress bars show progress within those phases (usually looped)
Steps to reproduce
write-progress"something"start-sleep5
Expected behavior
I should see "something" show up in a progress bar.
Actual behavior
I see nothing in PS 6. (If I use PS 5.1 or earlier in Windows, it works perfectly)
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 6.0.0-rc.2
PSEdition Core
GitCommitId v6.0.0-rc.2
OS Darwin 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov 918:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X8...
Platform Unix
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
If I embed a write-progress inside of a for loop, it works properly.
But if I'm trying to use write-progress to indicate progress within just a sequence of commands in a script... no dice.
In Windows Powershell, I use this frequently so I can have the master progress bar show which phase of the script I'm in, and the sub-progress bars show progress within those phases (usually looped)
Steps to reproduce
Expected behavior
Actual behavior
Environment data