[Pkg-shadow-devel] Compilation errors
Alexander Gattin
xrgtn at yandex.ru
Sun Jan 15 10:35:21 UTC 2006
Hi!
About recent patches.
We discussed meaning of 126 nad 127 exit codes. I had
very little suspicion this has to do smth. with shell
(e.g. bash), and after googleing, I found answer.
> man bash
> /^EXIT
here you see:
> If a command is not found, the child process created to execute it
> returns a status of 127. If a command is found but is not executable,
> the return status is 126.
and from POSIX:
http://www.opengroup.org/onlinepubs/000095399/utilities/command.html
> 126
> The utility specified by command_name was found but could not be invoked.
> 127
> An error occurred in the command utility or the utility specified by command_name could not be found.
Thus I'll add declarations for these exit codes in
lib/exitcodes.h and change numbers to macros where
appropriate. I'd prefer to make/incorporate this in
485_shelle_exitcodes patch.
P.S. I'll search for macro names in bash's headers
--
WBR,
xrgtn
More information about the Pkg-shadow-devel
mailing list