nushell/tests/fixtures/quoted_completions
Himadri Bhattacharjee 7162d4d9aa
Escape path that could be a flag (#10721)
# 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
..
test dir fix: complete paths surrounded by quotes or backticks (#10600) 2023-10-07 05:45:30 +13:00
-42 Escape path that could be a flag (#10721) 2023-10-18 23:02:11 +02:00
--help Escape path that could be a flag (#10721) 2023-10-18 23:02:11 +02:00
-inf Escape path that could be a flag (#10721) 2023-10-18 23:02:11 +02:00
4.2 Escape path that could be a flag (#10721) 2023-10-18 23:02:11 +02:00
te st.txt Add quotes to hash file autocomplete (#7398) 2022-12-08 21:37:10 +01:00
te'st.txt Add quotes to hash file autocomplete (#7398) 2022-12-08 21:37:10 +01:00
te(st).txt Auto-Completion: put ` tildes around filenames with parentheses (#7712) 2023-01-10 20:41:54 +01:00
te#st.txt Add quotes to hash file autocomplete (#7398) 2022-12-08 21:37:10 +01:00