Y
Hacker News
new
|
ask
|
show
|
jobs
by
mywittyname
2669 days ago
Is true a program? I thought it was a command built into the shell.
3 comments
int_19h
2669 days ago
Most shells optimize it to avoid the overhead of spawning a process for something as trivial as that. But yes, it's an actual binary even so, just in case - try `which true`.
https://www.gnu.org/software/coreutils/manual/html_node/true...
link
gpm
2669 days ago
Some history:
http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html
link
robin_reala
2669 days ago
It’s /usr/bin/true on Mac, and the OpenBSD source for it is at
https://github.com/openbsd/src/blob/master/usr.bin/true/true...
.
link
radgeRayden
2669 days ago
I don't know what I expected.
link
https://www.gnu.org/software/coreutils/manual/html_node/true...