Package: dash
Version: 0.5.5.1-3
Severity: important
Tags: sid

wait exit status is wrong, it is 145 (signaled with SIGCHLD).
Downgrading to 0.5.5.1-3 solves the problem. This is a simple
test that shows the bug:

ta...@birba:~$ cat /tmp/test-dash.sh
true &
p1=$!
true &
p2=$!
wait $p2 || echo p2 fails # if you print $? of the wait statement you get 145
wait $p1 || echo p1 fails
ta...@birba:~$ dash /tmp/test-dash.sh
p2 fails
ta...@birba:~$ bash /tmp/test-dash.sh
ta...@birba:~$ sudo aptitude install dash=0.5.5.1-3
....
ta...@birba:~$ dash /tmp/test-dash.sh

In case it helps debugging: note that if the two wait lines are swapped, it
works...

Cheers



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dash depends on:
ii  debianutils                   3.2.3      Miscellaneous utilities specific t
ii  dpkg                          1.15.7.1   Debian package management system
ii  libc6                         2.10.2-8   Embedded GNU C Library: Shared lib

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to