Hacker News new | ask | show | jobs
by obiterdictum 4400 days ago
What is wrong with piping `ls`?
3 comments

It's usually redundant. for i in * <--> for i in `ls`
Usually it is more pristine (from a theoretical standpoint) to use filename generation, aka globbing. You don't need a subprocess.