find: fix handling of trailing slashes in -name PATTERN comparisons

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2016-11-25 20:14:33 +01:00
parent 4b89d512b1
commit ccc9985c45
2 changed files with 64 additions and 9 deletions

View File

@@ -41,6 +41,33 @@ testing "find -exec exitcode 4" \
"1\n" \
"" ""
SKIP=
optional FEATURE_FIND_MAXDEPTH
testing "find / -maxdepth 0 -name /" \
"find / -maxdepth 0 -name /" \
"/\n" \
"" ""
testing "find // -maxdepth 0 -name /" \
"find // -maxdepth 0 -name /" \
"//\n" \
"" ""
testing "find / -maxdepth 0 -name //" \
"find / -maxdepth 0 -name //" \
"" \
"" ""
testing "find // -maxdepth 0 -name //" \
"find // -maxdepth 0 -name //" \
"" \
"" ""
SKIP=
testing "find ./// -name ." \
"find ./// -name ." \
".///\n" \
"" ""
testing "find ./// -name .///" \
"find ./// -name .///" \
"" \
"" ""
# testing "description" "command" "result" "infile" "stdin"