02-17-05 07:47 AM
junky_fellow@yahoo.co.in wrote:
> When a command is executed from the shell (ksh), its return value
> may be obtained by command "echo $?". This return value is equal to the
> error no (errno) if any of the system call in the executed command
> fails.
> The shell and the command executed are two different processes,
> then how the return value (error) of the command is known to
> shell.
> Also, in most of the programs I have seen if any of the system call
> fails the program exits with 1. So, during exit() also we are not
> telling anyone about the errno.
>
> Thanx in advance for any help ....
Is this a question or a political statement?
gtoomey
[ Post a follow-up to this message ]
|