Hi Thomas,
Thomas Nilsson wrote:
> kni...@traktor:~/source/external/git (master)$ set -o nounset
> bash: w: unbound variable
> kni...@traktor:~/source/external/git$ git ^Ibash: command: unbound
> variable
> bash: w: unbound variable
> kni...@traktor:~/source/external/git$
Thanks for the report. I realize it can be used to find real bugs,
but is it really useful to use that option in interactive shells?
> --- /etc/bash_completion.d/git 2010-02-23 12:08:43.000000000 +0100
> +++ /etc/bash_completion.d/git.orig 2010-02-23 12:05:01.000000000 +0100
> @@ -2167,7 +2167,7 @@
>
> _git ()
> {
> - local i c=1 command="" __git_dir
> + local i c=1 command __git_dir
>
> while [ $c -lt $COMP_CWORD ]; do
> i="${COMP_WORDS[c]}"
I have not investigated the other hunks yet. This one can be fixed by
replacing [ -z "$command" ] with [ -z "${command:+set}" ] below, which
seems preferable to me.
Regards,
Jonathan
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]