I noticed that when a command run by ksh93 is killed by SIGABRT, it returns an 
exit status of 262.  This is contrary to the behavior of dash, bash, zsh, csh, 
tcsh, and mksh, which all return 134.  It also seems contrary to the sus, which 
specifies that "the special parameter '?', the shell shall report the full 
eight bits of exit status available".  Is this a bug or is the behavior 
intentional?  I tested it on FreeBSD 9.1 and Ubuntu 11.10, both on amd64.

# /bin/sleep 20    # From another terminal, type "kill -6 the_pid_of_sleep"
Abort(coredump)
# echo $?
262
# ksh93 --version
  version         sh (AT&T Research) 93u+ 2012-08-01


http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_08_02

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

Reply via email to