Bug 239296 - bash core-dumps on ${b##${$a}}
bash core-dumps on ${b##${$a}}
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Tomas Janousek
Ben Levenson
Depends On:
Blocks: FC6Update
  Show dependency treegraph
Reported: 2007-05-07 09:36 EDT by Jan Hutař
Modified: 2007-11-30 17:12 EST (History)
2 users (show)

See Also:
Fixed In Version: 3.2-18.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-29 14:30:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
bash-3.1-16.1 backtrace (I don't have direct access to rawhide, but it behaves same way there) (2.22 KB, text/plain)
2007-05-07 09:36 EDT, Jan Hutař
no flags Details

  None (edit)
Description Jan Hutař 2007-05-07 09:36:52 EDT
Description of problem:
Bash core-dumps on "echo ${b##${$a}}"

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. $ a=/home
2. $ b=/home/pok/bla/ble
3. $ echo ${b#${$a}}

Actual results:

Expected results:
only some error (I have mistakenly ran that, when I was searching for "${b#$a}")
Comment 1 Jan Hutař 2007-05-07 09:36:52 EDT
Created attachment 154264 [details]
bash-3.1-16.1 backtrace (I don't have direct access to rawhide, but it behaves same way there)
Comment 2 Tim Waugh 2007-05-08 06:05:12 EDT
I can't reproduce this here on bash-3.2-9.fc7.i386 -- can you provide a complete
test case please?  Should 'a' or 'b' be defined in the environment, for example?
Comment 3 Adam Tkac 2007-05-08 06:09:54 EDT
Hm, typo in reproduce steps :)

Please run this simple script


echo ${b##${$a}}

Comment 4 Tim Waugh 2007-05-08 06:13:26 EDT
Thanks.  Reproduced on FC-6.
Comment 5 Tomas Janousek 2007-05-08 06:50:33 EDT
echo ${$##${}} is enough as well.
Comment 6 Jan Hutař 2007-10-29 14:30:18 EDT
seems to be fixed in a current package. I do not see a reason for back-porting 
the patch because of low severity of the bug => closing.

$ a=/home
$ b=/home/pok/bla/ble
$ echo ${b##${$a}}
bash: ${$a}: bad substitution
$ rpm -q bash


Note You need to log in before you can comment on or make changes to this bug.