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
Will there be a day when we will be able to copy paste random code from the internet like dig @8.8.8.8 github.com to PowerShell and it will just work?
Is this in the scope of PowerShell/PowerShell#1995?
If it is will it be merged in some point? as I understated it's a braking change but it will be a beneficial as it will make PowerShell compatible with all the other terminals like cmd and bash.
Specifically about question marks as valid characters in variable names. Last community call the PS team indicated that they would be looking back into the issue. Michael Klement (@mklement0) request is to reopen the issue as analysis of the PowerShell corpus found that virtually no one uses question marks in variable names.
No, PowerShell/PowerShell#1995 is about fixing the broken argument-passing to external programs when you use PowerShell's syntax.
By contrast, PowerShell/PowerShell#13068 is what you're referring to: the ability to call a command that uses another shell's syntax without modification.
As seductive as that is, I think it is a dead end that will create more problems than it will solve, similar to the problematic --%.
Hence my suggestion to not fight PowerShell's syntax and instead provide an ins (Invoke-NativeShell) cmdlet that takes the command as a string: ins 'dig @8.8.8.8 github.com'
Activity
kvprasoon commentedon Nov 19, 2020
Update about Working groups ? I see WG-* labels out there.
iSazonov commentedon Nov 19, 2020
I would like to say a big thank to xtqqczze for his great job modernizing PowerShell codebase (style, formatting, forcing analyzer rules).
ThomasNieto commentedon Nov 19, 2020
rkeithhill commentedon Nov 19, 2020
Any plans to get overall better native exe support into 7.2 or is that an 8.0 thing?
ili101 commentedon Nov 19, 2020
Will there be a day when we will be able to copy paste random code from the internet like
dig @8.8.8.8 github.comto PowerShell and it will just work?Is this in the scope of PowerShell/PowerShell#1995?
If it is will it be merged in some point? as I understated it's a braking change but it will be a beneficial as it will make PowerShell compatible with all the other terminals like cmd and bash.
EDIT: Keith Hill (@rkeithhill) you beat me to it by a few seconds (:
ThomasNieto commentedon Nov 19, 2020
Specifically about question marks as valid characters in variable names. Last community call the PS team indicated that they would be looking back into the issue. Michael Klement (@mklement0) request is to reopen the issue as analysis of the PowerShell corpus found that virtually no one uses question marks in variable names.
mklement0 commentedon Nov 19, 2020
ili101:
No, PowerShell/PowerShell#1995 is about fixing the broken argument-passing to external programs when you use PowerShell's syntax.
By contrast, PowerShell/PowerShell#13068 is what you're referring to: the ability to call a command that uses another shell's syntax without modification.
As seductive as that is, I think it is a dead end that will create more problems than it will solve, similar to the problematic
--%.Hence my suggestion to not fight PowerShell's syntax and instead provide an
ins(Invoke-NativeShell) cmdlet that takes the command as a string:ins 'dig @8.8.8.8 github.com'See PowerShell/PowerShell#13068 (comment), PowerShell/PowerShell#13068 (comment), and PowerShell/PowerShell#13068 (comment)