Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #13765 > unrolled thread
| Started by | Pierre Gaston <pierre.gaston@gmail.com> |
|---|---|
| First post | 2018-02-28 16:15 +0200 |
| Last post | 2018-02-28 16:15 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Arm machine does not execute background statement correctly Pierre Gaston <pierre.gaston@gmail.com> - 2018-02-28 16:15 +0200
| From | Pierre Gaston <pierre.gaston@gmail.com> |
|---|---|
| Date | 2018-02-28 16:15 +0200 |
| Subject | Re: Arm machine does not execute background statement correctly |
| Message-ID | <mailman.9858.1519827378.27995.bug-bash@gnu.org> |
On Wed, Feb 28, 2018 at 4:03 PM, Chet Ramey <chet.ramey@case.edu> 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.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/
>
>
I cannot reproduce it either (on an arm machine)
$ bash -x test.sh
[2]+echo '4.3.30(1)-release'
4.3.30(1)-release
[3]+uname -m
armv7l
[4]+rm out.txt
rm: cannot remove 'out.txt': No such file or directory
[12]+abc
$ [6]+'[' 2 -eq 1 ']'
[9]+echo FALSE
FALSE
Back to top | Article view | gnu.bash.bug
csiph-web