2 ms·
`echo` is a shell builtin on my machine. In that case, we certainly have access to an interpreter (the shell), which means we should have access to other interp
by krallja 10y ago
`echo` is a shell builtin on my machine. In that case, we certainly have access to an interpreter (the shell), which means we should have access to other interpreters. Why not define `true` as
#!/bin/sh
exit 0
? Similarly, why not use `sh` or one of those other interpreters to write the rest of the utilities? `cc` probably isn't that important after all. `chmod` and `sh` are!
- MayeulC 10y agoI would alias it as echo '' Since echo always returns true anyway :) But that's just sidestepping the problem, in any case.
- pricechild 10y agoThis article isn't really about solving a silly problem with hands, arms & tongue tied behind your back. It's about learning a little bit more about the layers which put our systems together. I don't think the author was seriously suggesting you use butterflies or a steady hand either.