On Thu, 6 Dec 2012, David Korn wrote:


Subject: Re: [ast-users] [ksh93] interactive ksh always exits 0 on CTRL-D
--------

Not a big problem but I think it better exit $?.


I tried the following and it did not exit 0.

$ ksh
$ false
^D
$ print $?
1

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users


I tried the following on Scientific Linux SL release 5.5 x86_64 as well as
on an arm running Ubuntu 12.04 LTS with the same results:

$ ksh
$ print ${.sh.version}
Version JM 93u 2011-02-08
$ false
^D
$ print $?
0
$

Version JM 93u+ 2012-02-29 also returns 0 in this situation.

Jeffry R. Abramson
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to