10 points · by fagnerbrack · 8y ago · 5 comments
Copyright violation requires actual copying/derivation, not mere similarity of content. (The latter can be evidence of the former, and often—because of the nature of the content and improbability of coincidental similarity, can be compelling evidence—but is not the thing prohibited.)
> tl;dr: they replaced a cryptic, undocumented implementation, which starts an entire bash shell just so it can exit, and replaced it by a fast ELF binary, which works like all the others.
/bin/true as an empty file may seem like an elegant implementation and lesson in UNIX, but it's actually slower, and I'd much rather have standardisation and documentation across all system commands.
$ type true
true is a shell builtin
So in your shell scripts, don't bother about performance.