Prerequisites
Steps to reproduce
Note:
- With respect to tilde expansion, Windows is affected too, in the context of the experimental
PSNativeWindowsTildeExpansion feature.
Normally, interpreting what would otherwise be an argument parsing-mode metacharacter literally can be deactivated with `; e.g, cmd /c echo `@ and cmd /c echo '@' are equivalent.
The same should apply to the POSIX-shell emulation features:
# Run on Linux or macOS.
# Tilde expansion: `~ should ensure *literal* treatment of ~
/bin/echo `~
# Native globbing: `* should ensure *literal* treatment of *
/bin/echo `*
See also:
Expected behavior
~ and * should print literally.
Actual behavior
The `-escaping is ignored, and expansion is still performed.
Error details
No response
Environment data
PowerShell 7.5.0-preview.2
Visuals
No response
Prerequisites
Steps to reproduce
Note:
PSNativeWindowsTildeExpansionfeature.Normally, interpreting what would otherwise be an argument parsing-mode metacharacter literally can be deactivated with
`; e.g,cmd /c echo `@andcmd /c echo '@'are equivalent.The same should apply to the POSIX-shell emulation features:
See also:
Expected behavior
~and*should print literally.Actual behavior
The
`-escaping is ignored, and expansion is still performed.Error details
No response
Environment data
Visuals
No response