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 @@ -43,6 +43,7 @@ sub err {
43
43
/ \b wc -l.*"\s *=/ and err ' `"$(wc -l)"` is not portable (use test_line_count)' ;
44
44
/ \b head\s +-c\b / and err ' head -c is not portable (use test_copy_bytes BYTES <file >out)' ;
45
45
/ (?:\$\( seq|^\s *seq\b )/ and err ' seq is not portable (use test_seq)' ;
46
+ / \b grep\b .*--file\b / and err ' grep --file FILE is not portable (use grep -f FILE)' ;
46
47
/ \b export\s +[A-Za-z0-9_]*=/ and err ' "export FOO=bar" is not portable (use FOO=bar && export FOO)' ;
47
48
/ ^\s *([A-Z0-9_]+=(\w +|(["']).*?\3 )\s +)+(\w +)/ and exists ($func {$4 }) and
48
49
err ' "FOO=bar shell_func" assignment extends beyond "shell_func"' ;
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ test_expect_success 'Add one more commit' '
134
134
git branch commits/8 &&
135
135
ls $objdir/pack | grep idx >existing-idx &&
136
136
git repack &&
137
- ls $objdir/pack| grep idx | grep -v --file= existing-idx >new-idx
137
+ ls $objdir/pack| grep idx | grep -v -f existing-idx >new-idx
138
138
'
139
139
140
140
# Current graph structure:
You can’t perform that action at this time.
0 commit comments