Justin Hallett wrote: > hmm this is the case since i'm getting stuff ready for 10.2 ATM, but if > this is the problem which is seems to be I'm not sure how I'll get it > working for 10.1 then :\ Any ideas?
I think I hunted this down: There seems to be a difference in the "trap" command between zsh and bash. "trap 'somecommand' 0", which executes somecommand after the end of the script in which it sits, sees as last return code "$?" the exit code of the script in the case of bash, and the last return code before the end of the script in the case of zsh. Run the following little script through zsh and through bash: martinc% cat Tstsh.sh trap 'echo last exit code: $?' 0 (exit 17) exit 3 martinc% zsh Tstsh.sh last exit code: 17 green:martinc% bash Tstsh.sh last exit code: 3 I guess it's another zsh bug (although the man page is not very clear on the subject of trap). In the case at hand, the following patch to configure would fix the problem. It resets the last exit code before the final "exit 0" to 0. Otherwise that exit code is the one from the "test" command, namely 1, and zsh converts it into configure's exit code by the trap instruction after line 1176. martinc% diff -u nessus-plugins/configure.ori nessus-plugins/configure --- nessus-plugins/configure.ori Tue Jul 30 23:06:26 2002 +++ nessus-plugins/configure Wed Jul 31 15:53:16 2002 @@ -8590,5 +8590,6 @@ \"to build Nessus\" \"\"" >&2;} } +echo Papering over a zsh bug... exit 0 -- Martin ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
