Re: Arm machine does not execute background statement correctly

2018-02-28 Thread Robert Elz
Date:Wed, 28 Feb 2018 09:03:45 -0500 From:Chet Ramey Message-ID: <46653602-7efa-9e3c-b477-4d22118fd...@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 fin

Arm machine does not execute background statement correctly

2018-02-28 Thread Lakshman Garlapati
Hi all, I am facing problem in bash 4.4 . In a function if first line is ‘If condition‘ and the function is called in background then the bash does not evaluate it properly Following are the cross compiled machine details. MACHINE="arm" OS="linux-gnueabi" CC="arm-cortex_a9_v004-linux-gnueabi-gcc

Re: Arm machine does not execute background statement correctly

2018-02-28 Thread Pierre Gaston
On Wed, Feb 28, 2018 at 4:03 PM, Chet Ramey 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.tx

Re: Arm machine does not execute background statement correctly

2018-02-28 Thread Chet Ramey
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" >   els