Annihilannic
MIS
I can't figure out why the command ksh built-in doesn't work on an SCO OpenServer 5.0.5 system:
[tt]$ alias echo="echo hi"
$ echo bye
hi bye
$ command echo bye
ksh: command: not found
$ whence -v command
command is an exported alias for command
$ alias
autoload='typeset -fu'
command='command '
dir='ls -lF'
echo='echo hi'
functions='typeset -f'
grep=/bin/grep
history='fc -l'
integer='typeset -i'
local=typeset
ls='ls -l'
nohup='nohup '
r='fc -e -'
stop='kill -STOP'
suspend='kill -STOP $$'
type='whence -v'
$ unalias command
$ command echo bye
ksh: command: not found
$ ps -fp $$
UID PID PPID C STIME TTY TIME CMD
me 16368 16366 2 12:27:14 ttyp2 00:00:00 -ksh
$
[/tt]
It's mentioned on the ksh(C) and command(C) man pages?
Annihilannic.
[tt]$ alias echo="echo hi"
$ echo bye
hi bye
$ command echo bye
ksh: command: not found
$ whence -v command
command is an exported alias for command
$ alias
autoload='typeset -fu'
command='command '
dir='ls -lF'
echo='echo hi'
functions='typeset -f'
grep=/bin/grep
history='fc -l'
integer='typeset -i'
local=typeset
ls='ls -l'
nohup='nohup '
r='fc -e -'
stop='kill -STOP'
suspend='kill -STOP $$'
type='whence -v'
$ unalias command
$ command echo bye
ksh: command: not found
$ ps -fp $$
UID PID PPID C STIME TTY TIME CMD
me 16368 16366 2 12:27:14 ttyp2 00:00:00 -ksh
$
[/tt]
It's mentioned on the ksh(C) and command(C) man pages?
Annihilannic.