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


Groups > gnu.bash.bug > #13778

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 Robert Elz <kre@munnari.OZ.AU>
Newsgroups gnu.bash.bug
Subject Re: Arm machine does not execute background statement correctly
Date Thu, 01 Mar 2018 05:10:35 +0700
Lines 51
Approved bug-bash@gnu.org
Message-ID <mailman.9912.1519855921.27995.bug-bash@gnu.org> (permalink)
References <46653602-7efa-9e3c-b477-4d22118fd22a@case.edu> <CAAXuWg7NkCLUmxjn7odVG7ERmqSF-x9vTh0Vc-pYH53S0LgUHA@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1519855921 4102 208.118.235.17 (28 Feb 2018 22:12:01 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To chet.ramey@case.edu
Envelope-to bug-bash@gnu.org
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 2001:3c8:9009:181::2
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:13778

Show key headers only | View raw


    Date:        Wed, 28 Feb 2018 09:03:45 -0500
    From:        Chet Ramey <chet.ramey@case.edu>
    Message-ID:  <46653602-7efa-9e3c-b477-4d22118fd22a@case.edu>

I didn't see the proginal of this message either, but ...

  | 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.

It appears as if something odd is up there, the "rm out.txt" has been executed 
as "rm -f out.txt" so either there are aliases involved somewhere, in which case
there is a $ENV type script with unknown contents, or the script that is
being tested isn't the script shown.

In either case, whatever happened needs to be discovered and understood
before looking for other possible bugs.

kre

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


Thread

Re: Arm machine does not execute background statement correctly Robert Elz <kre@munnari.OZ.AU> - 2018-03-01 05:10 +0700

csiph-web