Telling shell command errors from command exit statuses.
Kenneth Almquist
ka at hou3c.UUCP
Sat Aug 4 11:04:54 AEST 1984
The shell has (presumably) already forked off a child process by the
time it discovers that a command does not exist. Therefore, the only
way it *can* indicate that the command does not exist is to return
a nonzero exit status. Perhaps a special exit status should be reserved
for "command does not exist".
Kenneth Almquist
More information about the Comp.unix.wizards
mailing list