Set-StrictMode -Version latest doesn't error in some contexts
Votes from Connect: 3
Original Date Submitted: 9/13/2014 5:51:52 AM
Description:
Contact Information
Handle: Derp McDerp
Site Name: PowerShell
Feedback ID: 970514
Frequency: Always Happens
Regression: I do not know if this issue existed previously
Problem Description:
Set-StrictMode -Version latest
${env:with-paths-that-dont-exist}
${function:with-paths-that-dont-exist}
${drives:with-paths-that-dont-exist}
I expect these to error but they don't
"asdf" > $null
$a = $null ; "asdf" > $a
"asdf" > ''
I expect these to error but they don't
(though honestly, > $var should be a syntax error, users should be required to use Out-File)
Product Studio item created by Connect Synchronizer due to creation of feedback ID 970514 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=970514).
Repro Steps:
Expected Results:
Internal BugId: 10999
