From fbedc9dd74aeb0331202f9e503316960e32fa879 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 13 Feb 2019 09:02:24 -0800 Subject: find: fix -path/-ipath and add -wholename/-iwholename synonyms. Plus new tests. --- tests/find.test | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/find.test b/tests/find.test index 25c24400..7f2e6921 100755 --- a/tests/find.test +++ b/tests/find.test @@ -94,4 +94,13 @@ testing "-iname (no arguments)" \ testing "" "find dir \( -iname file -o -iname missing \) -exec echo {} \;" \ "dir/file\n" "" "" +testing "-path glob" \ + "find dir -path 'dir*e'" "dir/file\n" "" "" +testing "-wholename glob" \ + "find dir -wholename 'dir*e'" "dir/file\n" "" "" +testing "-ipath glob" \ + "find dir -ipath 'dIr*E'" "dir/file\n" "" "" +testing "-iwholename glob" \ + "find dir -iwholename 'dIr*E'" "dir/file\n" "" "" + rm -rf dir -- cgit v1.2.3