bug-bash
[Top][All Lists]
Advanced

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

Re: Segmentation fault in skip_to_delim / bash_directory_completion_hook


From: Chet Ramey
Subject: Re: Segmentation fault in skip_to_delim / bash_directory_completion_hook
Date: Tue, 16 May 2017 14:19:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.0

On 5/15/17 3:20 PM, Eduardo Bustamante wrote:

> I think this is the fix:

Yeah, that looks right.  I see what happened. Thanks.

> dualbus@debian:~/src/gnu/bash$ git diff -- bashline.c
> diff --git a/bashline.c b/bashline.c
> index 7884416a..c92255d6 100644
> --- a/bashline.c
> +++ b/bashline.c
> @@ -3247,7 +3247,7 @@ bash_directory_completion_hook (dirname)
>           char delims[2];
> 
>           delims[0] = closer; delims[1] = 0;
> -         p = skip_to_delim (t, t - local_dirname + 1, delims,
> SD_NOJMP|SD_COMPLETE);
> +         p = skip_to_delim (t, 1, delims, SD_NOJMP|SD_COMPLETE);
>           if (t[p] != closer)
>             should_expand_dirname = 0;
>         }
> 


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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