bug-bash
[Top][All Lists]
Advanced

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

Re: Invalid extglob causes segfault with help builtin.


From: Chet Ramey
Subject: Re: Invalid extglob causes segfault with help builtin.
Date: Mon, 05 Aug 2013 16:29:32 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7

On 8/5/13 3:49 PM, Geir Hauge wrote:

> Bash Version: 4.2
> Patch Level: 45
> Release Status: release
> 
> Description:
> One of the side-effects of the latest changes of the help
> builtin in the devel release is that ''help "(("'' no longer
> shows the help for (( ... )), so I casually threw some asterisks
> around it ... and got a segfault. This also happens in bash
> 4.2.45 and 4.2.25, but not 3.2.48. It only segfaults when
> extglob is enabled; probably because it's an incomplete extglob.

Thanks for the report.  The seg fault (trying to assign to an index
in a constant string) was fairly easy to fix.

I will have to think about the best way to make `help ((' show help for
the (( command, even though it doesn't exactly match the name of the
builtin in reserved.def.

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/



reply via email to

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