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

Why did you use bash and not sh for the interpreter?


To keep the comparison fair. My interactive shell is bash (which I assume is a more popular choice for interactive shell then sh), and the version without any shebang will use whatever the parent shell is. To make the comparison fair, I wanted the version with the shebang to be using the same shell.

Besides, /bin/sh would also require dereferencing a symlink (to /bin/dash), which also doesn't seem fair.




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

Search: