I'm confused. If it is supposed to set $?, then doesn't the sample program show that it's not working? My output looks like this:
Thanks -Craigexit1=0 ret1=Wed Jun 20 15:09:04 CDT 2007 24862: parent pid=24864 24864: child exit2=-1 ret2=Wed Jun 20 15:09:04 CDT 2007 exit2=-1 ret2=Wed Jun 20 15:09:04 CDT 2007 exit2=-1 ret2=Wed Jun 20 15:09:04 CDT 2007 exit2=-1 ret2=Wed Jun 20 15:09:04 CDT 2007 exit2=-1 ret2=Wed Jun 20 15:09:04 CDT 2007
In reply to Re^2: $? stuck returning -1...
by cmv
in thread $? stuck returning -1...
by cmv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |