2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 12:43:48 +00:00
nushell/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
..
assets/nu_json Preserve order when serializing/deserialize json by default. () 2021-03-04 01:35:13 -05:00
const_ remove the $nothing variable () 2023-09-26 18:49:28 +02:00
eval Exit early when encountering parsing errors () 2023-09-05 14:36:37 +02:00
fixtures Escape path that could be a flag () 2023-10-18 23:02:11 +02:00
hooks Auto-expand table based on terminal width () 2023-08-08 05:47:23 -05:00
modules Recursively export constants from modules () 2023-08-20 14:51:35 +02:00
overlays Add --env and --wrapped flags to def () 2023-10-02 21:13:31 +03:00
parsing Fix parsing of signature inp/out types in predecls () 2023-10-08 12:58:26 +02:00
path change canonicalize test use a more deeply rooted folder () 2023-10-11 11:27:25 -05:00
plugins Correct line folding in from ics/from vcf () 2023-10-03 19:11:16 +02:00
scope Add a few more fields to scope commands () 2023-08-18 20:47:38 +03:00
shell Let run_in_login_mode succeed even with broken local config () 2023-10-10 14:12:19 +02:00
main.rs prevent redefining fields in a record () 2023-04-02 06:09:33 +12:00