Fixed in 93u+ 2012-05-04 update. But still has a small problem when PS1
includes $(). Fo example:

$    <== now in ksh
$ ksh.120504.93u+    <== start another ksh
$ PS1='$(true)$ '
$ false
$ echo $?
1    <== $() in PS1 does not affect $?. This is fine.
$ false
$ exit
$ echo $?
0    <== Should be 1 here.
$

On Mon, Apr 23, 2012 at 5:54 PM, 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

Reply via email to