ls: Fixed lack of recursive ls-ing when no argument.

This commit is contained in:
jienfak 2020-04-22 21:44:39 +05:00
parent 2526345311
commit 348ac923be

View file

@ -103,7 +103,10 @@ func Run(args []string) int {
fmt.Fprintf(os.Stderr, "%s: %s.\n", arg0, e) fmt.Fprintf(os.Stderr, "%s: %s.\n", arg0, e)
} else { } else {
for _, f := range l { for _, f := range l {
fmt.Println(f.Name()) e := ls(f.Name(), foldLvl)
if e!=nil {
status = 1
}
} }
} }
} else { } else {