nushell/tests/fixtures
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
..
completions nu-cli/completions: add custom completion test (#5543) 2022-05-14 15:09:41 -05:00
cp use uutils/coreutils cp command in place of nushell's cp command (#10097) 2023-09-08 13:57:38 -05:00
eval Exit early when encountering parsing errors (#10213) 2023-09-05 14:36:37 +02:00
formats allow early return outside of main (#10514) 2023-09-28 18:49:42 +02:00
partial_completions Fish-like completions for nested directories (#10543) 2023-10-03 06:44:51 +13:00
playground/config Revert "Primitives now use color closures..." (#7710) 2023-01-08 21:53:52 -08:00
quoted_completions Escape path that could be a flag (#10721) 2023-10-18 23:02:11 +02:00