Merge pull request #608 from pmeredit/master

Fix bug with ls globbing a single directory
This commit is contained in:
Jonathan Turner 2019-09-07 15:54:04 +12:00 committed by GitHub
commit 452f96a836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,8 +106,7 @@ impl Shell for FilesystemShell {
if entries.len() == 1 { if entries.len() == 1 {
if let Ok(entry) = &entries[0] { if let Ok(entry) = &entries[0] {
if entry.is_dir() { if entry.is_dir() {
let entries = std::fs::read_dir(&full_path); let entries = std::fs::read_dir(&entry);
let entries = match entries { let entries = match entries {
Err(e) => { Err(e) => {
if let Some(s) = args.nth(0) { if let Some(s) = args.nth(0) {