I've been runing ksh93_integration_20070419_snapshot_i386.tar.bz2
for a while.  It works great for the most part, except for one
problem.  For about 20 years I've used
        trap "jobs -l" CHLD
in my $ENV file to achieve an approximation of the csh "set notify"
behavior.  In this version of ksh93 (I don't know about others - I
haven't previously used ksh93) this causes an overabundance of
data:

$ jobs
$ trap
trap -- 'jobs -l' CHLD
$ sleep 1000 &
[1]     21894
$ date
Sat Jun  2 16:59:57 PDT 2007
[1] + 21894      Running                 sleep 1000 &
$ pwd
/home/ford
$ /bin/pwd
/home/ford
[1] + 21894      Running                 sleep 1000 &
$ echo ${.sh.version}
Version M 1993-12-28 s+
$ /bin/echo ${.sh.version}
Version M 1993-12-28 s+
[1] + 21894      Running                 sleep 1000 &
$ 

In other words, ksh93 seems to execute the CHLD trap even on
foreground jobs changing state, while previous versions have only done
this for background jobs.  The documentation seems to imply that the
latter behavior should be expected.

                                        -=] Mike [=-

Reply via email to