Bug 677389

Summary: oddness in parameter expansion
Product: [Fedora] Fedora Reporter: Miroslav Lichvar <mlichvar>
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: maxamillion, rrakus, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-07 17:28:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Miroslav Lichvar 2011-02-14 15:30:36 UTC
Description of problem:
xterm configure script fails in rawhide with an odd error:
line 5780: bad substitution: no closing `}' in ${icondir:-'\$(exec_prefix)/share/pixmaps'}

It seems that when bash is started as /bin/sh, the following expression doesn't work:

$ echo "${a:-'a/b'}"
sh: bad substitution: no closing `}' in ${a:-'a/b'}

Interesting is that removing the slash or the quotes or the double quotes from the expression makes it work.

Version-Release number of selected component (if applicable):
bash-4.2.0-0.1.rc2.fc15.x86_64

How reproducible:
Always

Steps to Reproduce:
1. echo "${a:-'a/b'}"

Actual results:
sh: bad substitution: no closing `}' in ${a:-'a/b'}

Expected results:
a/b

Comment 1 Roman Rakus 2011-02-14 19:27:30 UTC
Thanks for the report. It is known and probably will be fixed in next release.
See http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00125.html, what is the issue reported upstream.

Comment 2 Roman Rakus 2011-03-07 16:44:49 UTC
Can you please try the latest built? Seems it is fixed.

Comment 3 Miroslav Lichvar 2011-03-07 17:28:31 UTC
Works with bash-4.2.7-1.fc16, thanks!