2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 12:43:48 +00:00
nushell/crates/nu-cli/tests
Himadri Bhattacharjee 7162d4d9aa
Escape path that could be a flag ()
# 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.
2023-10-18 23:02:11 +02:00
..
support Fish-like completions for nested directories () 2023-10-03 06:44:51 +13:00
completions.rs Escape path that could be a flag () 2023-10-18 23:02:11 +02:00