Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jzwinck
on Aug 21, 2021
|
parent
|
context
|
favorite
| on:
The /bin/true Command and Copyright (2009)
Instead of a symlink to true you could have made an empty script.
michaelt
on Aug 21, 2021
|
next
[–]
And violate AT&T's copyright? Perish the thought!
viseztrance
on Aug 22, 2021
|
prev
[–]
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.
cmeacham98
on Aug 22, 2021
|
parent
[–]
An empty script returns 0 by default, thus `touch /path/to/missing/library` is a sufficient (and shorter!) one-liner fix to this problem.
viseztrance
on Aug 22, 2021
|
root
|
parent
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: