bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] added -- in autocd


From: Chet Ramey
Subject: Re: [PATCH] added -- in autocd
Date: Tue, 28 Apr 2015 16:29:23 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 4/28/15 2:44 PM, isabella parakiss wrote:
> ---
>  execute_cmd.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/execute_cmd.c b/execute_cmd.c
> index e3aa37f..51c29c6 100644
> --- a/execute_cmd.c
> +++ b/execute_cmd.c
> @@ -4283,6 +4283,7 @@ run_builtin:
> 
>    if (autocd && interactive && words->word && is_dirname (words->word->word))
>      {
> +      words = make_word_list (make_word ("--"), words);
>        words = make_word_list (make_word ("cd"), words);
>        xtrace_print_word_list (words, 0);
>        goto run_builtin;

Thanks, this is a good idea and the right fix.

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]