Clark, you must use exit $? and not exit without arguments.

Olga

On Mon, Apr 23, 2012 at 11:54 AM, Clark J. Wang <[email protected]> wrote:
> For example:
>
> $ ps    <== now in Bash
>   PID TTY         TIME CMD
> 22664 pts/6       0:00 bash
> 23405 pts/6       0:00 ps
> $ ksh
> $ ps    <== now in Ksh
>   PID TTY         TIME CMD
> 22664 pts/6       0:00 bash
> 23406 pts/6       0:00 ksh
> 23417 pts/6       0:00 ps
> $ echo ${.sh.version}
> Version jM 93u 2011-02-08
> $ false
> $ exit
> $ echo $?    <== now in Bash
> 0    <== Should be 1 here
> $
>
> _______________________________________________
> ast-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/ast-users
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to