diff options
author | Thomas Rast <trast@inf.ethz.ch> | 2013-07-08 17:20:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-08 10:20:59 -0700 |
commit | 38678a15a2bf65580573a46e967c1d8d269965ae (patch) | |
tree | d368f364dfa4c9cc4bb63e4284be5a0123762382 | |
parent | 531c8dd4fb18e653d6170d367e4b23c3164d5ce0 (diff) | |
download | git-38678a15a2bf65580573a46e967c1d8d269965ae.tar.gz |
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>
-rwxr-xr-x | t/t9902-completion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 6d9d1418a0..a71d8b41e3 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -69,7 +69,7 @@ run_completion () local -a COMPREPLY _words local _cword _words=( $1 ) - test "${1: -1}" == ' ' && _words+=('') + test "${1: -1}" = ' ' && _words+=('') (( _cword = ${#_words[@]} - 1 )) __git_wrap__git_main && print_comp } |