mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
Merge branch 'cb/test-lint-cp-a'
BSD port update. * cb/test-lint-cp-a: tests: add lint for non portable cp -a
This commit is contained in:
commit
edb3273cd2
|
@ -35,6 +35,7 @@ sub err {
|
|||
chomp;
|
||||
}
|
||||
|
||||
/\bcp\s+-a/ and err 'cp -a is not portable';
|
||||
/\bsed\s+-i/ and err 'sed -i is not portable';
|
||||
/\becho\s+-[neE]/ and err 'echo with option is not portable (use printf)';
|
||||
/^\s*declare\s+/ and err 'arrays/declare not portable';
|
||||
|
|
Loading…
Reference in a new issue