News for hackers. Stuff that matters.
Re:The /bin/true Command and Copyright (2009) by viseztrance on Saturday August 21, 2021 @07:09PM (#28261381)
> The /bin/true (or /usr/bin/true) command is now nearly obsolete, because most extant shells now have a builtin "true" command. But it's still useful occasionally, for various silly reasons [...]

This make it sound like this is useless, but I disagree. For example, recently I had some games crash because they couldn't find pulseaudio, and making a symlink from pulseaudio to /bin/true fixed my issue (and yes, they had sound). So there are certainly legitimate uses for it.

Re:The /bin/true Command and Copyright (2009) by jzwinck on Saturday August 21, 2021 @07:19PM (#28261452)
Instead of a symlink to true you could have made an empty script.
Re:The /bin/true Command and Copyright (2009) by michaelt on Saturday August 21, 2021 @07:42PM (#28261615)
And violate AT&T's copyright? Perish the thought!
Re:The /bin/true Command and Copyright (2009) by viseztrance on Saturday August 21, 2021 @08:25PM (#28261855)
Well the symlink command was also easier to share with others having the same issue, whereas a one liner that creates an executable script which returns 0 is less ideal.
Re:The /bin/true Command and Copyright (2009) by cmeacham98 on Saturday August 21, 2021 @08:38PM (#28261911)
An empty script returns 0 by default, thus `touch /path/to/missing/library` is a sufficient (and shorter!) one-liner fix to this problem.
Re:The /bin/true Command and Copyright (2009) by viseztrance on Saturday August 21, 2021 @08:43PM (#28261930)
I know, but you still have to make it executable, hence it's not as convenient.

And on top of this, an unlink is less error prone than a rm -f.