mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
7162d4d9aa
# Description Files that begin with dashes can be ambiguous when passed to commands like `ls`. For example if there exists a file `--help`, it might be considered a flag if not properly escaped. This PR escapes any file that begins with a dash. # User-Facing Changes Files beginning with dashes will be escaped. # Tests + Formatting Tests are added. |
||
---|---|---|
.. | ||
test dir | ||
--help | ||
-42 | ||
-inf | ||
4.2 | ||
te st.txt | ||
te#st.txt | ||
te'st.txt | ||
te(st).txt |