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 {
21
21
/ ^\s *declare\s +/ and err ' arrays/declare not portable' ;
22
22
/ ^\s *[^#]\s *which\s / and err ' which is not portable (please use type)' ;
23
23
/ 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)' ;
24
25
# this resets our $. for each file
25
26
close ARGV if eof ;
26
27
}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ run_completion ()
69
69
local -a COMPREPLY _words
70
70
local _cword
71
71
_words=( $1 )
72
- test " ${1: -1} " == ' ' && _words+=(' ' )
72
+ test " ${1: -1} " = ' ' && _words+=(' ' )
73
73
(( _cword = ${# _words[@]} - 1 ))
74
74
__git_wrap__git_main && print_comp
75
75
}
You can’t perform that action at this time.
0 commit comments