diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-09-23 08:31:04 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-09-23 08:31:04 -0700 |
| commit | 75fc96d57e1262fe4b6bf87b5887e9103bcca7fb (patch) | |
| tree | 4450e029e7429879269b18f0937854211b73f719 /t/test-lib-functions.sh | |
| parent | 4b79ee4b0cd1130ba8907029cdc5f6a1632aca26 (diff) | |
| parent | 37eb90f79a97cfeb216c7afe7bb0f129edfc10e4 (diff) | |
| download | git-75fc96d57e1262fe4b6bf87b5887e9103bcca7fb.tar.gz | |
Merge branch 'dd/retire-efgrep' into es/retire-efgrep
* dd/retire-efgrep:
t: convert fgrep usage to "grep -F"
t: convert egrep usage to "grep -E"
t: remove \{m,n\} from BRE grep usage
CodingGuidelines: allow grep -E
Diffstat (limited to 't/test-lib-functions.sh')
| -rw-r--r-- | t/test-lib-functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index c6479f24eb..527a714500 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -897,7 +897,7 @@ test_path_is_symlink () { test_dir_is_empty () { test "$#" -ne 1 && BUG "1 param" test_path_is_dir "$1" && - if test -n "$(ls -a1 "$1" | egrep -v '^\.\.?$')" + if test -n "$(ls -a1 "$1" | grep -E -v '^\.\.?$')" then echo "Directory '$1' is not empty, it contains:" ls -la "$1" |
