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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to