01-25-06 07:58 AM
2006-01-25, 03:30(+00), Steve Foley:
> I've got a DG/UX system, and a Linux/Mandrake 10.1. Neither has a whence
> command or builtin.
[...]
It's a builtin in ksh and zsh, and does the same job as "type" but
with many options and a different syntax.
See the useful "whence -m <pattern>" in zsh to search for
commands with a pattern.
$ whence -apm '?sh'
/bin/ash
/usr/bin/ssh
/usr/bin/bsh
/usr/bin/ksh
/usr/bin/zsh
/bin/csh
/usr/bin/rsh
In zsh, "type" is "whence -v", "where" is "whence -ca", "which"
is "whence -c".
--
Stéphane
[ Post a follow-up to this message ]
|