-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 23 Aug 2016, Anthony Carrico wrote:
Note:
$ bash
$ which echo
/usr/bin/echo
$ zsh
orange% which echo
echo: shell built-in command
Oh noes! zsh considered harmful? I think the war is already lost if we
are holding up unix shells as examples of good language design. I don't
think we have much to worry about if Microsoft is playing catch up on
bash since we are finally starting to moving on from all this silly
shell scripting nonsense.
Oh, it's better than that:
jcampbel@kiera:~$ echo $SHELL
/bin/bash
jcampbel@kiera:~$ which echo
/usr/bin/echo
jcampbel@kiera:~$ echo --version
- --version
jcampbel@kiera:~$ /usr/bin/echo --version
echo (GNU coreutils) 8.21
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Brian Fox and Chet Ramey.
jcampbel@kiera:~$
There's an external echo program installed as part of the GNU
coreutils package (at least on Slackware; I'm assuming it's pretty
universally included), and which finds it under bash, but bash will silently
use its internal echo function anyway, unless you explicitly call the
external one. I discovered this one time because they do not work the same
and I needed a feature that the GNU one has, and the man page (or maybe the
info page *makes nasty eyes at the FSF and their insistence on not
maintaining their man pages*) clearly describes, that the bash internal one
does not have.
Also shell scripting is awesome what are you talking about.
- --
John Campbell
jcamp...@lynn.ci-n.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAle+XPgACgkQPu/PJk2ePZ3LVQCeKVOYxPvUp0ujDQbRCib4IRcx
E3UAoKp6xReIwthSdgrruWW496q69uki
=Iwdd
-----END PGP SIGNATURE-----