-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Note:
- With respect to tilde expansion, Windows is affected too, in the context of the experimental
PSNativeWindowsTildeExpansionfeature.
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.2Visuals
No response
domsleee
Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.