nushell/tests
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
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
const_ remove the $nothing variable (#10478) 2023-09-26 18:49:28 +02:00
eval Exit early when encountering parsing errors (#10213) 2023-09-05 14:36:37 +02:00
fixtures Escape path that could be a flag (#10721) 2023-10-18 23:02:11 +02:00
hooks Auto-expand table based on terminal width (#9934) 2023-08-08 05:47:23 -05:00
modules Recursively export constants from modules (#10049) 2023-08-20 14:51:35 +02:00
overlays Add --env and --wrapped flags to def (#10566) 2023-10-02 21:13:31 +03:00
parsing Fix parsing of signature inp/out types in predecls (#10642) 2023-10-08 12:58:26 +02:00
path change canonicalize test use a more deeply rooted folder (#10685) 2023-10-11 11:27:25 -05:00
plugins Correct line folding in from ics/from vcf (#10577) 2023-10-03 19:11:16 +02:00
scope Add a few more fields to scope commands (#10045) 2023-08-18 20:47:38 +03:00
shell Let run_in_login_mode succeed even with broken local config (#10622) 2023-10-10 14:12:19 +02:00
main.rs prevent redefining fields in a record (#8705) 2023-04-02 06:09:33 +12:00