2 ms·
I'd say this is less unixy, because it relies on the shell to walk the file tree, rather than delegating to a utility whose job is to do just that. No comment
by twic 11y ago
I'd say this is less unixy, because it relies on the shell to walk the file tree, rather than delegating to a utility whose job is to do just that.
No comment on whether it's actually better or worse, mind!
- OJFord 11y agoI 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".