I have a legacy Bash script which calls /bin/true
somewhere. When I run it on a MacOS system I get an error:
/bin/true: No such file or directory
How do I install /bin/true
to the system? I couldn't find anything similar via brew search
.
It's in /usr/bin
so change all references from /bin/true
to true
as it's reasonable to expect /usr/bin
to be in the $PATH
.
That or a load of tedious cross-platform conditional stuff...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.