[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arm machine does not execute background statement correctly
From: |
Chet Ramey |
Subject: |
Re: Arm machine does not execute background statement correctly |
Date: |
Wed, 28 Feb 2018 09:03:45 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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 address@hidden http://tiswww.cwru.edu/~chet/