[Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-47-g068a1a1

Ville Skyttä ville.skytta at iki.fi
Wed Nov 16 21:58:22 UTC 2011


On 11/16/2011 10:21 PM, Igor Murzov wrote:
> The following commit has been merged in the master branch:
> commit b3fcb55dcf3d5a99d9a705a54dd649a976706d3f
> Author: Igor Murzov <e-mail at date.by>
> Date:   Wed Nov 16 23:46:29 2011 +0300
> 
>     __get_cword_at_cursor_by_ref: Add missing quotes.
>     
>     Fixes  _get_comp_words_by_ref() and sftp tests (Alioth #313102).

Cool, fixes it for me too.  However, one question:

> -                cur="${cur#${words[i]}}"
> +                cur="${cur#"${words[i]}"}"

This looks quite exotic to me, and I can't tell offhand in which cases
quoting like this would be required and I'm too lazy to try figure it
out myself right now, so could you shed some light on the scenarios when
quoting like this (the inner quotes that start after the #) is needed?

BTW, I suppose the outer quotes are unnecessary, is that incorrect?




More information about the Bash-completion-devel mailing list