Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ben_bai
on Oct 12, 2017
|
parent
|
context
|
favorite
| on:
The /bin/true Command and Copyright (1990)
Most likely nobody uses /bin/true (/usr/bin/true).
Executing true without the pathname will run the shell embedded function.
kobeya
on Oct 12, 2017
[–]
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:
Executing true without the pathname will run the shell embedded function.