Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And yet he pipes from ls...


And all those functions wrapping [[, ugh.

maybe I should start doing this in Python

    def plus (a,b):
        return a+b


What is wrong with piping `ls`?


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.





Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: