Debian Bug report logs - #758969
bash: "! true &" sets $? to 1

version graph

Package: bash; Maintainer for bash is Matthias Klose <doko@debian.org>; Source for bash is src:bash (PTS, buildd, popcon).

Reported by: Vincent Lefevre <vincent@vinc17.net>

Date: Sat, 23 Aug 2014 10:39:02 UTC

Severity: normal

Found in version bash/4.3-9

Forwarded to http://lists.gnu.org/archive/html/bug-bash/2014-08/msg00081.html

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#758969; Package bash. (Sat, 23 Aug 2014 10:39:07 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Lefevre <vincent@vinc17.net>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>. (Sat, 23 Aug 2014 10:39:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vincent Lefevre <vincent@vinc17.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash: "! true &" sets $? to 1
Date: Sat, 23 Aug 2014 12:36:45 +0200
Package: bash
Version: 4.3-9
Severity: normal

With bash:

vinc17@xvii:~$ ! true &
[1] 15171
vinc17@xvii:~$ echo $?
1
[1]+  Done                    true

while POSIX says:

  The exit status of an asynchronous list shall be zero.

in http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02

Other shells (dash, ksh93, mksh, zsh) behave correctly.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages bash depends on:
ii  base-files   7.5
ii  dash         0.5.7-4
ii  debianutils  4.4
ii  libc6        2.19-9
ii  libncurses5  5.9+20140712-2
ii  libtinfo5    5.9+20140712-2

Versions of packages bash recommends:
ii  bash-completion  1:2.1-4

Versions of packages bash suggests:
pn  bash-doc  <none>

-- debconf-show failed



Set Bug forwarded-to-address to 'http://lists.gnu.org/archive/html/bug-bash/2014-08/msg00081.html'. Request was from Vincent Lefevre <vincent@vinc17.net> to control@bugs.debian.org. (Sat, 23 Aug 2014 11:27:18 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Dec 6 08:35:02 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.