File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ sub err {
2121 / ^\s *declare\s +/ and err ' arrays/declare not portable' ;
2222 / ^\s *[^#]\s *which\s / and err ' which is not portable (please use type)' ;
2323 / test\s +[^=]*==/ and err ' "test a == b" is not portable (please use =)' ;
24+ / ^\s *export\s +[^=]*=/ and err ' "export FOO=bar" is not portable (please use FOO=bar && export FOO)' ;
2425 # this resets our $. for each file
2526 close ARGV if eof ;
2627}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments