[plug] bash scripting

Clare Johnstone clare at cyllene.uwa.edu.au
Wed Dec 24 07:20:45 WST 2003


On Tue, 23 Dec 2003, James Devenish wrote:
> Thanks.
> % zsh -c 'which true'
> true: shell built-in command
> % zsh -c 'type true'
> true is a shell builtin
> So, `type` is the `whence -v` compatibility, by the look of it.

Hmm, not necessarily.
I use crux, which has in it
name=coreutils
version=5.0
release=1
source=(http://www.ibiblio.org/pub/gnu/$name/$name-$version.tar.bz2)

and it supplies /bin/true

so using bash I get:

clare at wombat:~$ which true
/bin/true
clare at wombat:~$ type true
true is a shell builtin
clare at wombat:~$ echo $BASH_VERSION
2.05b.0(1)-release

All part of the fun I guess
cheers
clare





More information about the plug mailing list