Hi Folks !
While trying to compile Andrew and some other large projects with huge
makefile systems using /bin/sh under Linux (where /bin/sh is bash), I
found this strange behaviour :
$ sh -c 'exit 5' ; echo $?
This broke all makefiles using "sh -c". So I began tracing this in bash
and found that it is no bug, it's a features ;) At least it looks like
it was meant this way. But I find it not only strange, I find it wrong.
Under all other Unixes I could try it on, it worked like expected,
returning 5. Well, if somebody else wants to correct this in
bash-1.14.3, this is the diff for shell.c
< case EXITPROG:
---Quote:> case EXITPROG:
> return last_command_exit_value;
If Rush Limbaugh doesn't need a disclaimer, neither do I.
"Who is General Failure and why is he reading my hard disk ?"
Microsoft spel chekar vor sail, worgs grate !!
PLEASE remember Keywords: and a short description of the software.