On 1/30/10 4:17 PM, [email protected] wrote:
> Bash Version: 4.0
> Patch Level: 35
> Release Status: release
>
> Description:
> bash died while word completion if filename contains a '*' character
>
> Repeat-By:
> touch file\*1
> touch file\*2
> chmod +x file*
> ./file[tab][tab]
The problem is attempting to recompute already-computed information.
Try the attached patch:
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.1-patched/bashline.c 2009-10-24 14:10:19.000000000 -0400
--- bashline.c 2010-01-30 21:53:49.000000000 -0500
***************
*** 1681,1685 ****
characters in the common prefix are bad) will ever be returned on
regular completion. */
! if (glob_pattern_p (hint))
{
if (state == 0)
--- 1681,1685 ----
characters in the common prefix are bad) will ever be returned on
regular completion. */
! if (globpat)
{
if (state == 0)