From 8e0b5e0e009271a7a9fc371e7278e9d9de22cfb3 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Thu, 13 Aug 2015 15:53:12 +0200 Subject: Wieland Hoffmann: 36123: protect against word splitting in __git_is_committish_range --- Completion/Unix/Command/_git | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index a5e44641b..92db67928 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -4973,8 +4973,8 @@ __git_is_treeish () { (( $+functions[__git_is_committish_range] )) || __git_is_committish_range () { [[ $1 == *..(.|)* ]] || return 1 - local first=$(__git_committish_range_first $1) - local last=$(__git_committish_range_last $1) + local first="$(__git_committish_range_first $1)" + local last="$(__git_committish_range_last $1)" [[ $first != *..* && $last != *..* ]] && \ __git_is_committish $first && \ __git_is_committish $last -- cgit 1.4.1