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


Groups > gnu.bash.bug > #13764

Re: Arm machine does not execute background statement correctly

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Arm machine does not execute background statement correctly
Date 2018-02-28 09:03 -0500
Message-ID <mailman.9857.1519826640.27995.bug-bash@gnu.org> (permalink)
References <CAAXuWg7NkCLUmxjn7odVG7ERmqSF-x9vTh0Vc-pYH53S0LgUHA@mail.gmail.com>

Show all headers | View raw


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/

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


Thread

Re: Arm machine does not execute background statement correctly Chet Ramey <chet.ramey@case.edu> - 2018-02-28 09:03 -0500

csiph-web