4 ms·
It would be more worthwhile to show various shells implementations of echo, because most of the time you are going to be running your shell's builtin echo inste
by tbirdz 12y ago
It would be more worthwhile to show various shells implementations of echo, because most of the time you are going to be running your shell's builtin echo instead of /bin/echo.
- pritambaral 12y agoBash: http://git.savannah.gnu.org/cgit/bash.git/tree/builtins/echo.def http://git.savannah.gnu.org/cgit/bash.git/tree/builtins/echo... ZSH: http://sourceforge.net/p/zsh/code/ci/a4ff8e69570cbdb8e7d5bf1d5cc4000ffe63e15e/tree/Src/builtin.c#l3732 http://sourceforge.net/p/zsh/code/ci/a4ff8e69570cbdb8e7d5bf1...
- arh68 12y agoThanks for posting the bash source. It looked a lot like the GNU source, then I noticed at the top of it: /* echo.c, derived from code echo.c in Bash.