t9902: fix 'test A == B' to use = operator
The == operator as an alias to = is not POSIX. This doesn't actually matter for the execution of the script, because it only runs when the shell is bash. However, it trips up test-lint, so it's nicer to use the standard form. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thomas Rast committed
Jul 8, 2013 at 17:20 UTC
38678a15a2bf65580573a46e967c1d8d269965ae
1 file changed
+1
-1
t/t9902-completion.sh
+1
-1
@@ -69,7 +69,7 @@ run_completion ()
69
local -a COMPREPLY _words
70
local _cword
71
_words=( $1 )
72
- test "${1: -1}" == ' ' && _words+=('')
72
+ test "${1: -1}" = ' ' && _words+=('')
73
(( _cword = ${#_words[@]} - 1 ))
74
__git_wrap__git_main && print_comp
75
}