From 348ac923be3c7cf1cefe0d50115d5b5808d338d8 Mon Sep 17 00:00:00 2001 From: jienfak Date: Wed, 22 Apr 2020 21:44:39 +0500 Subject: [PATCH] ls: Fixed lack of recursive ls-ing when no argument. --- ls/ls.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ls/ls.go b/ls/ls.go index 7411289..c221bad 100644 --- a/ls/ls.go +++ b/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 {