From 2e975278c59de9ab6caa5ace65de4b49c6678e65 Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Tue, 10 Jan 2012 03:48:15 +0400 Subject: _command_offset: Properly quote arguments of eval (Alioth: #313499). --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index e3ff95f1..ef79f0ab 100644 --- a/bash_completion +++ b/bash_completion @@ -1712,7 +1712,7 @@ _command_offset() else cspec=${cspec#complete} cspec=${cspec%%$compcmd} - COMPREPLY=( $( eval compgen "$cspec" -- "$cur" ) ) + COMPREPLY=( $( eval compgen "$cspec" -- '$cur' ) ) fi elif [[ ${#COMPREPLY[@]} -eq 0 ]]; then # XXX will probably never happen as long as completion loader loads -- cgit v1.2.1