Commit e2423313 authored by Guido Günther's avatar Guido Günther

bash_completion: Quote all variables

for consistency

Gbp-Dch: Ignore
parent a1a36e7e
......@@ -23,7 +23,7 @@ _gbp_tags ()
_gbp_options ()
{
gbp $1 --help | sed -ne 's/^ \+\(\(\-[a-z]\), \)\?\(\-\-[a-z\-]\+\=\?\).*/\2 \3/p'
gbp "${1}" --help | sed -ne 's/^ \+\(\(\-[a-z]\), \)\?\(\-\-[a-z\-]\+\=\?\).*/\2 \3/p'
}
......@@ -197,8 +197,8 @@ _gbp ()
local func
command=$(_gbp_find_cmd_on_cmdline "$commands")
if [ -z $command ]; then
COMPREPLY=( $(compgen -W "$commands" -- $cur ) )
if [ -z "${command}" ]; then
COMPREPLY=( $(compgen -W "$commands" -- "${cur}" ) )
else
func=_gbp-"${command}"
$func
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment