|
From: | Barry Davis |
Subject: | bash 4.3 cross compile with default configure has broken [ in subshell |
Date: | Fri, 27 Mar 2015 17:27:16 -0000 |
Bash 4.3 with or without additional patches up to 033.
Compiler: gcc 4.8.3 and 4.9.2
hardware: ESXi5.5 i7-3930K
OS: linux LFS / CLFS / Ubuntu 14.04.2 LTS
Cross compiled from linux ix86 to run in linux x86_64
When configured with no configure overrides it uses defaults configure
provides when cross compile detected.
The resulting executable has issues with the builtin [ when used in a
subshell. It works the first time but then always returns 0 thereafter.
E.g:
# ./bash4.3.33
# ( [ -z 3 ] ;echo $? ) 1 # ( [ -z 3 ] ;echo $? ) 0 # ( [ -z 3 ] ;echo $? ) 0 # [ -z 3 ] ;echo $? 1 # [ -z 3 ] ;echo $? 1 # [ -z 3 ] ;echo $? 1 It works correctly when using the config.cache settings detailed here: http://clfs.org/view/git/ppc64/temp-system/bash.html
Best regards
Barry Davis |
[Prev in Thread] | Current Thread | [Next in Thread] |