[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in bash 4.3.30 with --disable-job-control
From: |
Roy Keene |
Subject: |
Bug in bash 4.3.30 with --disable-job-control |
Date: |
Tue, 02 Jun 2015 12:07:55 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
All,
There is a bug of some sort in bash 4.3.30 (and likely others) when
compiled with --disable-job-control on Linux/x86_64.
The following script will produce output after running for about 30 seconds:
while true; do dfOutput="$(/bin/echo test)"; if echo "${dfOutput}" |
/bin/false; then echo Impossible; fi; done
It should never produce any output, and will not produce any output if
bash is compiled with --enable-job-control.
Additionally, the commands may be run out of order when they involve a pipe.
For example:
while true; do dfOutput="$(/bin/echo test)"; if echo "${dfOutput}" |
/bin/false; then echo a; echo b | cat; echo c; echo ---; fi; done
Can produce the output:
a
c
---
b
a
...
I have done no further investigation.
Thanks,
Roy Keene
- Bug in bash 4.3.30 with --disable-job-control,
Roy Keene <=