Hello,

On Thu, 30 Mar 2000, Thomas Esser wrote:

> Can you please try:
> 
>   #!/bin/sh
>   exit_return() { setreturn "$@"; exit "$@"; }
>   setreturn() { return "$@"; }
>   trap 'rc=$?; echo $rc; exit $rc' 0 1 2 15
>   exit_return 1

This does the trick, but changing the first line to

#!/bin/ksh

changes behaviour. It doesn't echo number 1, but sets the exit code
correctly.

Regards,
  Metod

Metod Kozelj

mailto:[EMAIL PROTECTED]            /\  Ne posiljajte mi smeti ker grizem!
http://www.rzs-hm.si/                   /  \  Don't spam me for I bite!
_______________________________________/    \__________________________________

---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'


Reply via email to