[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Parameter Expansion] bug in ${variable% *}
From: |
Chet Ramey |
Subject: |
Re: [Parameter Expansion] bug in ${variable% *} |
Date: |
Tue, 12 Feb 2013 11:53:54 -0500 |
> Bash version: 4.2.042
>
> I have a script that behaves erratically:
Thanks for the report. The reason it is erratic and not always
reproducible in the same spot is that it is the result of an array
bounds error, and so depends on the contents of memory beyond the
end of a string.
I've fixed the problem, and the fix will be in the next release. If
you're interested in the fix, I've attached a patch.
Chet
xdupmbstorcs-patch
Description: Text document
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- [Parameter Expansion] bug in ${variable% *}, Dashing, 2013/02/12
- Re: [Parameter Expansion] bug in ${variable% *}, Dashing, 2013/02/12
- Re: [Parameter Expansion] bug in ${variable% *}, Bernd Eggink, 2013/02/12
- Re: [Parameter Expansion] bug in ${variable% *}, Dashing, 2013/02/12
- Re: [Parameter Expansion] bug in ${variable% *}, Bernd Eggink, 2013/02/12