bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Positional parameter & array slicing bug with empty arguments


From: Chet Ramey
Subject: Re: Positional parameter & array slicing bug with empty arguments
Date: Sun, 12 Jan 2014 19:14:09 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 1/12/14, 4:13 AM, Theodoros V. Kalamatianos wrote:
> On Sun, Jan 12, 2014 at 09:52:22AM +0200, Pierre Gaston wrote:
> 
>> patch 32 seems to have caused this
> 
> It seems to me that the bug patch 032 addresses is slightly less troubling
> than having arrays break out of the blue.

Let's rein in the hyperbole.  Bash uses DEL as an internal marker character
during word expansion, so problems involving DEL are a higher priority than
you might think.  I apologize for not testing the corner case you ran
across, but it's been 18 months since the patch was released and yours is
the first report of problems with it, so it doesn't seem to have affected
many people.

> Would it make sense to recompile a Bash binary without that patch for now,
> or is a new patch on its way?

I am working on getting bash-4.3 out the door before I think about
releasing additional patches to bash-4.2.  I have appended something you
can apply -- your line numbers will certainly vary -- to get you past the
problem you're currently having.

Chet
-- 
``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/

Attachment: dollar-at-substring-expansion.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]