ls: Fixed lack of recursive ls-ing when no argument.
This commit is contained in:
parent
2526345311
commit
348ac923be
1 changed files with 4 additions and 1 deletions
5
ls/ls.go
5
ls/ls.go
|
@ -103,7 +103,10 @@ func Run(args []string) int {
|
|||
fmt.Fprintf(os.Stderr, "%s: %s.\n", arg0, e)
|
||||
} else {
|
||||
for _, f := range l {
|
||||
fmt.Println(f.Name())
|
||||
e := ls(f.Name(), foldLvl)
|
||||
if e!=nil {
|
||||
status = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue