nushell/crates/nu-command/src
Wind 9e5f4c3b82
fix ls with empty string (#12086)
# Description
Fixes: #12054

It's cause by nu always add `/*` if there is a parameter in ls, then `ls
""` becomes `ls "/*"`. This pr tries to fix it by only append `/`
character if pattern is not empty.

# User-Facing Changes
NaN

# Tests + Formatting
Done

# After Submitting
NaN

---------

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
2024-03-08 22:49:41 +01:00
..
bytes Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
charting Remove Record::from_raw_cols_vals_unchecked (#11810) 2024-02-18 14:20:22 +02:00
conversions Glob: don't allow implicit casting between glob and string (#11992) 2024-02-28 23:05:35 +08:00
database Fix up ctrl+C handling in into_sqlite (#12130) 2024-03-08 21:06:06 +01:00
date Adjust examples in date commands (#12055) 2024-03-03 15:10:50 -06:00
debug Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
env Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
experimental Bump windows from 0.48.0 to 0.52.0 (#11325) 2023-12-21 18:49:15 +01:00
filesystem fix ls with empty string (#12086) 2024-03-08 22:49:41 +01:00
filters Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
formats Fix: string_to_table in ssv.rs now filters comments. (issue #11997) (#12035) 2024-03-01 07:11:13 -06:00
generators Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
hash adjust some commansd input_output type (#11436) 2024-01-15 16:58:26 +08:00
help adjust some commansd input_output type (#11436) 2024-01-15 16:58:26 +08:00
math allow math avg to work with durations (#11598) 2024-01-21 08:41:23 -06:00
misc Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
network Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
path Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00
platform Improve sleep resolution (#12049) 2024-03-02 14:03:56 -06:00
random Name the Value conversion functions more clearly (#11851) 2024-02-17 18:14:16 +00:00
removed Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. (#11285) 2023-12-15 14:32:37 +08:00
shells Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. (#11285) 2023-12-15 14:32:37 +08:00
stor Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00
strings deprecate str escape-glob command (#12018) 2024-02-29 20:29:56 +08:00
system Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
viewers nu-table: Improve table -a (#11905) 2024-02-23 19:12:10 -06:00
default_context.rs Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
example_test.rs Add interleave command for reading multiple streams in parallel (#11955) 2024-03-01 16:56:37 -06:00
lib.rs Simplify the feature gates for stor commands (#11416) 2023-12-24 13:31:46 +01:00
progress_bar.rs remove cp-old (#11622) 2024-01-24 07:38:15 +08:00
sort_utils.rs Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00