summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-02-28 14:35:39 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-02-28 14:35:39 -0500
commit517a303e425b606cde3b70a1481ff557bba17462 (patch)
treecdb4100bab98bbd335aa192128aff949850f3ffe /tests.sh
parente14f04e52f792d12f3798b3c69bd0279ac7d3150 (diff)
downloadbfs-517a303e425b606cde3b70a1481ff557bba17462.tar.xz
parse: Check for globs with unescaped trailing backslashes
Both macOS and musl fail to fail on an unescaped backslash, so check for it ourselves. Link: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html Link: https://github.com/void-linux/void-packages/pull/35836 Link: https://www.openwall.com/lists/musl/2022/02/25/2 Link: https://www.austingroupbugs.net/view.php?id=806
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests.sh b/tests.sh
index 9003efd..995b7a6 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1338,9 +1338,6 @@ function test_name_bracket() {
}
function test_name_backslash() {
- # fnmatch() is broken on macOS
- skip_if test "$UNAME" = "Darwin"
-
# An unescaped \ doesn't match
bfs_diff weirdnames -name '\'
}