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
Passing a bareword argument to a parameter that isn't type-constrained is parsed as a number if it looks like one.
The resulting value self-identifies as a number and mostly acts as such, but it is wrapped in an invisible [psobject] instance in which the original string representation is cached.
In the context of -f, this string representation surfaces unexpectedly, meaning that the value is unexpectedly not treated as a number:
Prerequisites
Steps to reproduce
Passing a bareword argument to a parameter that isn't type-constrained is parsed as a number if it looks like one.
The resulting value self-identifies as a number and mostly acts as such, but it is wrapped in an invisible
[psobject]instance in which the original string representation is cached.In the context of
-f, this string representation surfaces unexpectedly, meaning that the value is unexpectedly not treated as a number:Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response