Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #13765

Re: Arm machine does not execute background statement correctly

Path csiph.com!feeder.erje.net!2.us.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!171.64.64.130.MISMATCH!usenet.stanford.edu!not-for-mail
From Pierre Gaston <pierre.gaston@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Arm machine does not execute background statement correctly
Date Wed, 28 Feb 2018 16:15:46 +0200
Lines 55
Approved bug-bash@gnu.org
Message-ID <mailman.9858.1519827378.27995.bug-bash@gnu.org> (permalink)
References <CAAXuWg7NkCLUmxjn7odVG7ERmqSF-x9vTh0Vc-pYH53S0LgUHA@mail.gmail.com> <46653602-7efa-9e3c-b477-4d22118fd22a@case.edu>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1519827378 21674 208.118.235.17 (28 Feb 2018 14:16:18 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Lakshman Garlapati <lskumar.garlapati@gmail.com>, "bug-bash@gnu.org" <bug-bash@gnu.org>
To Chet Ramey <chet.ramey@case.edu>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hHJaVf0xNfjTSuWGRz0xgW8J1yXomPxVHL70peJhfnY=; b=RXeg5VWyLyf6oAM+uAkoHgexGUql71Q8Khg6Vgrj1h34cnuVHQ5e04sasgUVR7zJxP 5hLr5R4QFJyRRaMKQ8QriOupz0M+2fDQ5GnmCoCrsu0ZJuolc5mXo6svhtNIt0Bheok+ 7ATaeT4bDqD/uww2rIajUymEEmMHs5601e9V4JcJlMFRc4s7a8hPx3Gmi6Jz+gxrcaO3 yKZda3XTF95qfsK/RnlXEluoD0uGQ9GGyK+qP6ljyyvLfPa/8a4M1V9eIEVe0qlLpn0O /utrTaww3LlhdclKDL4v1xTd0la+PYU1J+iBzS82EmXc5NRsN0qMkqKwm8Y3ovSrPM6H c8Tw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hHJaVf0xNfjTSuWGRz0xgW8J1yXomPxVHL70peJhfnY=; b=QiFZVfN1yUpgsQ9fY444G6lO9RTHuv9/+kOlXuftAtnEgpT+o/1S4Bbr/Dw4BwUtf0 6oAleq1M64c11J0QeNCAIDN3vV3sUGmzKLZR7nI4tkpIILxfMbyiFAVr751xy0valZw7 Ywsus7UK8tp+1yv6iG3hWlnM7PENmDefJVng9duxrOQkinDqgzT5mi0neEyT+/7hrlKf WSHlZL13pmY+ygakelTNPVOWf5jZcWAgvIwVz3vPn9StXg+TWyQTav/u4pmzvVs4JFPX nx/yL5iSQcnJCfv35dEkQ/lhkM+DJgTB41cQkGHCOiVq8VPhlR+jjjwT2brbHyBzEgE5 To4A==
X-Gm-Message-State APf1xPBm1brJwX7iFGcAKaHje8r8c1DrI+Y7uhDi7m+2DIIpZOefvfrd NwbFhkJyfrDtOmYuQcivMtW+mWuYYaPj32uEQDw=
X-Google-Smtp-Source AG47ELvVFeNgOvLOQZ5GCjjZWqldC4oPFJDk8v5lD+bA8kTs4o1Bi7Sx1HXZbvTg/5ZGzgse5NJIK9bkW4kuuaMjWTk=
X-Received by 10.237.32.135 with SMTP id 7mr29401959qtb.287.1519827367041; Wed, 28 Feb 2018 06:16:07 -0800 (PST)
In-Reply-To <46653602-7efa-9e3c-b477-4d22118fd22a@case.edu>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:400d:c0d::232
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:13765

Show key headers only | View raw


On Wed, Feb 28, 2018 at 4:03 PM, Chet Ramey <chet.ramey@case.edu> wrote:

> On 2/28/18 5:31 AM, Lakshman Garlapati wrote:
>
> > The following snippet is working fine in x86 processor machine not
> working
> > in arm processor machine from bash 4.3 version onwards.
> >
> > test.sh
> > =====
> > #!/bin/bash
> > rm out.txt
> > function abc() {
> >   if [ 2 -eq 1 ]; then
> >     echo "TRUE"
> >   else
> >     echo "FALSE"
> >   fi
> > }
> > abc &
> >
> > bash -x test.sh
> > ===========
> > + rm -f out.txt
> > + abc
> > + '[' 2 -eq 1 ']'
> > + echo TRUE  <---- Here we are expecting FALSE
> > TRUE
> >
> > please provide some guidance on how to resolve the problem, let me know
> if
> > problem statement is not clear.
>
> I can't reproduce it and don't have a good idea about what might be going
> wrong on your system. Is the arm version compiled with job control enabled?
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>
>
I cannot reproduce it either (on an arm machine)

$ bash -x test.sh
[2]+echo '4.3.30(1)-release'
4.3.30(1)-release
[3]+uname -m
armv7l
[4]+rm out.txt
rm: cannot remove 'out.txt': No such file or directory
[12]+abc
$ [6]+'[' 2 -eq 1 ']'
[9]+echo FALSE
FALSE

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Arm machine does not execute background statement correctly Pierre Gaston <pierre.gaston@gmail.com> - 2018-02-28 16:15 +0200

csiph-web