Your message dated Wed, 09 Mar 2011 13:39:54 +0000
with message-id <[email protected]>
and subject line Bug#615922: fixed in dash 0.5.6.1-1~exp1
has caused the Debian Bug report #615922,
regarding dash: The "." builtin does not reset the value of $?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
615922: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615922
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dash
Version: 0.5.5.1-7.4
Severity: normal


Steps to reproduce:

    $ cat /tmp/test.sh
    false
    . /dev/null
    echo $?
    $ dash /tmp/test.sh
    1
    $ bash /tmp/test.sh
    0

The only reference I can find to POSIX behaviour of "." says[1]:

    EXIT STATUS: Returns the value of the last command executed, or a zero
    exit status if no command is executed.

In the above example, no command is executed (since /dev/null is empty) but the
resulting exit status is not zero; in fact, it's left-over from the invocation
of "false". For the record, "busybox sh" behaves the same way as dash, as does
posh.

I came across this problem in a script that used "set -e". Here's
a slightly less minimal test-case:

    $ cat /tmp/test2.sh 
    set -e
    if false; then
        echo "hello"
    else
        . /dev/null
    fi
    $ dash /tmp/test2.sh; echo $?
    1

The "." builtin is treated as having failed, even though it was the condition
of the if statement that set $? to a non-zero value.

[1] http://pubs.opengroup.org/onlinepubs/009695399/utilities/dot.html

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages dash depends on:
ii  debianutils                   3.4.4      Miscellaneous utilities specific t
ii  dpkg                          1.15.8.10  Debian package management system
ii  libc6                         2.11.2-11  Embedded GNU C Library: Shared lib

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true



--- End Message ---
--- Begin Message ---
Source: dash
Source-Version: 0.5.6.1-1~exp1

We believe that the bug you reported is fixed in the latest version of
dash, which is due to be installed in the Debian FTP archive:

ash_0.5.6.1-1~exp1_all.deb
  to main/d/dash/ash_0.5.6.1-1~exp1_all.deb
dash_0.5.6.1-1~exp1.diff.gz
  to main/d/dash/dash_0.5.6.1-1~exp1.diff.gz
dash_0.5.6.1-1~exp1.dsc
  to main/d/dash/dash_0.5.6.1-1~exp1.dsc
dash_0.5.6.1.orig.tar.gz
  to main/d/dash/dash_0.5.6.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonathan Nieder <[email protected]> (supplier of updated dash package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 06 Mar 2011 21:11:25 -0600
Source: dash
Binary: dash ash
Architecture: all source
Version: 0.5.6.1-1~exp1
Distribution: experimental
Urgency: low
Maintainer: Gerrit Pape <[email protected]>
Changed-By: Jonathan Nieder <[email protected]>
Description: 
 ash        - compatibility package for dash
 dash       - POSIX-compliant shell
Closes: 429251 532302 540685 607174 615922
Changes: 
 dash (0.5.6.1-1~exp1) experimental; urgency=low
 .
   * new upstream release.
     * add preliminary LINENO support (closes: #540685, reopens:
       #582952).
     * fix corruption of redirections with byte 0x81 (closes:
       #532302).
     * honor tab as IFS whitespace in read (closes: #429251,
       #607174).
   * debian/diff/:
     - remove patches applied upstream (0001-0016, 0020).
     - 0021--INPUT-exit-127...diff: remove; patch is faulty
       (reopens: #548687).
     - 0022--EVAL-with-set-e-exit: remove; fixed upstream.
     - 0019--SHELL-print-n-upon...diff: rename to 0034-*.
     - 0001...0033: new from the upstream "master" branch.
     - 0035-PARSER-Remove-backslash-before...diff: new from the
       mailing list: remove backslashes used to escape closing
       braces in ${...} expressions (thx Jilles Tjoelker).
     - 0036-BUILTIN-Fix-corruption-of-reads...diff: new from the
       mailing list: do not corrupt input by removing CTLESC bytes
       ('\x81') in readcmd (thx Alexey Gladkov).
     - 0037-EVAL-Make-.-dev-null-return-0.diff: new from the
       mailing list: dotcmd should yield status 0 when no command
       is executed (thx Tim Allen, closes: #615922).
   * debian/watch: document upstream source location.
Checksums-Sha1: 
 52f4d5f590625f03fe747b651dc5c8cb37b384b5 1047 dash_0.5.6.1-1~exp1.dsc
 06944456a1e3a2cbc325bffd0c898eff198b210a 209757 dash_0.5.6.1.orig.tar.gz
 e4d3a47a7288633f0badf8610e37e38f21d18778 62692 dash_0.5.6.1-1~exp1.diff.gz
 db6efcee6a4235e1ea9292159f446b2d90593818 27720 ash_0.5.6.1-1~exp1_all.deb
Checksums-Sha256: 
 0fa21aa119e71a6f861c4d375bbc577826a2ccac293f56fea2bd86dc3043f31a 1047 
dash_0.5.6.1-1~exp1.dsc
 666b52375e69a213ee6270bae3bbe8000b66d9b442b1d8d06fc3317c22125d4e 209757 
dash_0.5.6.1.orig.tar.gz
 93788e2dfec273626908ae9d085fa990ee25b310e884ab4be5b7c67ee2d3d4aa 62692 
dash_0.5.6.1-1~exp1.diff.gz
 1bab09dc0303a8080fd9b25ae867c1caf6b2bdc2bc9b24d0dcd5f5fa64f3703f 27720 
ash_0.5.6.1-1~exp1_all.deb
Files: 
 7f0d21c222ebd65179191651055e4b52 1047 shells optional dash_0.5.6.1-1~exp1.dsc
 1c846f4f5a33c0050b2045a6f7037e56 209757 shells optional 
dash_0.5.6.1.orig.tar.gz
 03c48e71d46df085d111e779c582cca8 62692 shells optional 
dash_0.5.6.1-1~exp1.diff.gz
 671a7556865606572bb62ca814e782a3 27720 shells optional 
ash_0.5.6.1-1~exp1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk13dAUACgkQGJoyQbxwpv/XaQCeI7cWaUkmYNJLyhogIXaL2c9W
rzwAnRO8AvItKjelIDyZCUF3Kf0kQoH8
=hYNg
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to