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
That is, the unquoted status of the initial ~ should be preserved.
Actual behavior
'~/a test''~/a test''~/a test'
That is, all expansions resulted in inappropriate quoting in that the previously unquoted~ - required to trigger PowerShell's tilde-expansion emulation when calling external programs - is now quoted.
Prerequisites
Steps to reproduce
Note:
Currently, the problem only affects Unix-like platforms, because only there is the emulation of tilde expansion for native programs implemented.
However, once Add tilde expansion for windows native executables #20402 is merged, it'll affect Windows too.
The solution is the same on both platforms: preserve the unquoted status of an initial
~if specified as such.Related:
Expected behavior
That is, the unquoted status of the initial
~should be preserved.Actual behavior
That is, all expansions resulted in inappropriate quoting in that the previously unquoted
~- required to trigger PowerShell's tilde-expansion emulation when calling external programs - is now quoted.Error details
No response
Environment data
Visuals
No response