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

Most likely nobody uses /bin/true (/usr/bin/true).

Executing true without the pathname will run the shell embedded function.



Needing a program that returns true comes up more often than just shell scripting. For example, maybe a system reports an event by launching a named executable. Specifying /bin/true is the equivalent of redirecting that event to /dev/null.




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

Search: