Describe the bug
When attempting to list files inside a directory which name contain characters [ and ], nushell fails to display the file list.
How to reproduce
I'm building the main branch at 18th May, but the behaviour is also reproducible on the Arch Linux nushell package (version 0.80.0):
cargo r
mkdir "[test]"
cd "[test]"
ls # this will work as the folder is empty
touch file
ls # this will fail
Error:
× No matches found for *
╭─[entry #5:1:1]
1 │ ls
· ─┬
· ╰── Pattern, file or folder not found
╰────
help: no matches found
Expected behavior
nushell should list the files present in the folder, no matter what characters are present in the folder's name.
Screenshots

Configuration
| key |
value |
| version |
0.80.1 |
| branch |
main |
| commit_hash |
e752d8a |
| build_os |
linux-x86_64 |
| build_target |
x86_64-unknown-linux-gnu |
| rust_version |
rustc 1.67.1 (d5a82bbd2 2023-02-07) |
| rust_channel |
1.67.1-x86_64-unknown-linux-gnu |
| cargo_version |
cargo 1.67.1 (8ecd4f20a 2023-01-10) |
| build_time |
2023-05-18 22:20:13 +02:00 |
| build_rust_channel |
debug |
| features |
default, zip |
| installed_plugins |
|
Additional context
No response
Describe the bug
When attempting to list files inside a directory which name contain characters
[and], nushell fails to display the file list.How to reproduce
I'm building the
mainbranch at 18th May, but the behaviour is also reproducible on the Arch Linuxnushellpackage (version0.80.0):Expected behavior
nushellshould list the files present in the folder, no matter what characters are present in the folder's name.Screenshots
Configuration
Additional context
No response