[plug] bash scripting
James Devenish
devenish at guild.uwa.edu.au
Tue Dec 23 20:42:22 WST 2003
Hi,
In message <20031223122714.GC1368 at erdos.home>
on Tue, Dec 23, 2003 at 08:27:14PM +0800, Cameron Patrick wrote:
> On Tue, Dec 23, 2003 at 08:16:37PM +0800, James Devenish wrote:
> | I wasn't aware of `type`
>
> FWIW:
>
> $ zsh -c 'type true'
> true is a shell builtin
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.
> Also, in bash at least, typing "help" will give you a list of built in
> shell commands.
Yeah, `help` is an executable on some systems and zsh happens to use the
non-conflicting name `run-help` (not sure why). I'm not sure about any
ksh equivalent.
More information about the plug
mailing list