mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
Merge pull request #608 from pmeredit/master
Fix bug with ls globbing a single directory
This commit is contained in:
commit
452f96a836
@ -106,8 +106,7 @@ impl Shell for FilesystemShell {
|
||||
if entries.len() == 1 {
|
||||
if let Ok(entry) = &entries[0] {
|
||||
if entry.is_dir() {
|
||||
let entries = std::fs::read_dir(&full_path);
|
||||
|
||||
let entries = std::fs::read_dir(&entry);
|
||||
let entries = match entries {
|
||||
Err(e) => {
|
||||
if let Some(s) = args.nth(0) {
|
||||
|
Loading…
Reference in New Issue
Block a user