2 ms·
I was going to make a similar argument, but then I lost faith in what ls' job is, if we want to walk this really pedantic path. After all, `echo * * / * ` is g
by OJFord 11y ago
I was going to make a similar argument, but then I lost faith in what ls' job is, if we want to walk this really pedantic path.
After all, `echo * * / * ` is going to give you an ugly dump of space-separated files; while `ls * * / * ` will give you a pretty list with colours, ownership, permissions, date modified, is directory/exec/symlink, etc. with their respective flags or according to your alias.
I don't think it's cheating to argue that `ls` job is to format the files given, or within given directory.
Edit: Although possibly it is, because `man ls` tells us "list directory contents".