Your message dated Sun, 11 Sep 2005 16:03:20 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#299928: bash: negative exit status are buggy
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Mar 2005 12:01:36 +0000
>From [EMAIL PROTECTED] Thu Mar 17 04:01:36 2005
Return-path: <[EMAIL PROTECTED]>
Received: from postfix4-2.free.fr [213.228.0.176] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DBth1-0002Sy-00; Thu, 17 Mar 2005 04:01:35 -0800
Received: from [127.0.0.1] (mutualite-1-82-67-62-65.fbx.proxad.net 
[82.67.62.65])
        by postfix4-2.free.fr (Postfix) with ESMTP id 9D5082EC624;
        Thu, 17 Mar 2005 13:01:32 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: matthieu castet <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: bash: negative exit status are buggy
X-Mailer: reportbug 3.8
Date: Thu, 17 Mar 2005 13:01:33 +0100
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: bash
Version: 3.0-14
Severity: normal

Hi,

Bash accept negative exit status, I don't now if it is normal (dash or
posh don't accept it.)

But even if there are accepted, the return value is wrong :
$ bash -c "exit -1"; echo $?
255

bash -c "exit -10"; echo $?
246


Matthieu

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages bash depends on:
ii  base-files              3.1.2            Debian base system miscellaneous f
ii  libc6                   2.3.2.ds1-20     GNU C Library: Shared libraries an
ii  libncurses5             5.4-4            Shared libraries for terminal hand
ii  passwd                  1:4.0.3-31sarge1 change and administer password and

-- no debconf information

---------------------------------------
Received: (at 299928-done) by bugs.debian.org; 11 Sep 2005 14:03:23 +0000
>From [EMAIL PROTECTED] Sun Sep 11 07:03:23 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EESQV-0004u3-00; Sun, 11 Sep 2005 07:03:23 -0700
Received: from mailhost.cs.tu-berlin.de ([EMAIL PROTECTED] [130.149.17.13])
        by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id QAA24818
        for <[EMAIL PROTECTED]>; Sun, 11 Sep 2005 16:03:21 +0200 (MEST)
Received: from localhost (localhost [127.0.0.1])
        by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 2FC7FFD4B
        for <[EMAIL PROTECTED]>; Sun, 11 Sep 2005 16:03:21 +0200 (MEST)
Received: from mailhost.cs.tu-berlin.de ([127.0.0.1])
 by localhost (bueno [127.0.0.1]) (amavisd-new, port 10224) with ESMTP
 id 24301-01 for <[EMAIL PROTECTED]>;
 Sun, 11 Sep 2005 16:03:20 +0200 (MEST) 14098
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
        by mailhost.cs.tu-berlin.de (Postfix) with ESMTP
        for <[EMAIL PROTECTED]>; Sun, 11 Sep 2005 16:03:20 +0200 (MEST)
Received: (from [EMAIL PROTECTED])
        by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id j8BE3Kbx028171;
        Sun, 11 Sep 2005 16:03:20 +0200 (MEST)
From: Matthias Klose <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <[EMAIL PROTECTED]>
Date: Sun, 11 Sep 2005 16:03:20 +0200
To: [EMAIL PROTECTED]
Subject: Re: Bug#299928: bash: negative exit status are buggy
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned: by amavisd-new at cs.tu-berlin.de
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Chet Ramey writes:
> Matthias Klose wrote:
> > matthieu castet writes:
> > 
> >>Package: bash
> >>Version: 3.0-14
> >>Severity: normal
> >>
> >>Hi,
> >>
> >>Bash accept negative exit status, I don't now if it is normal (dash or
> >>posh don't accept it.)
> >>
> >>But even if there are accepted, the return value is wrong :
> >>$ bash -c "exit -1"; echo $?
> >>255
> >>
> >>bash -c "exit -10"; echo $?
> >>246
> > 
> > 
> > I don't see anything, why this should be disallowed, the behaviour is
> > the same as in zsh. The exit status is anded with 0377, see exit(3).
> 
> There's no bug here.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to