Skip to content

Commit 38678a1

Browse files
Thomas Rastgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 531c8dd commit 38678a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9902-completion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ run_completion ()
6969
local -a COMPREPLY _words
7070
local _cword
7171
_words=( $1 )
72-
test "${1: -1}" == ' ' && _words+=('')
72+
test "${1: -1}" = ' ' && _words+=('')
7373
(( _cword = ${#_words[@]} - 1 ))
7474
__git_wrap__git_main && print_comp
7575
}

0 commit comments

Comments
 (0)