summaryrefslogtreecommitdiffstats
path: root/tests/gnu/execdir_self.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-06-11 20:25:34 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-06-15 10:09:23 -0400
commitdef4a832425bfe94b96b8cb1146a83552b754fb4 (patch)
tree936a643c54a83a5dbed0a8a56b28ab066187b5fa /tests/gnu/execdir_self.sh
parenta0fe051f8b2bcc919d67f822b674cdfe8cf1274b (diff)
downloadbfs-def4a832425bfe94b96b8cb1146a83552b754fb4.tar.xz
xspawn: Don't check xfaccess(..., X_OK) before fchdir()
Fixes: 8c130ca ("xspawn: Check X_OK even without $PATH resolution")
Diffstat (limited to 'tests/gnu/execdir_self.sh')
-rw-r--r--tests/gnu/execdir_self.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/gnu/execdir_self.sh b/tests/gnu/execdir_self.sh
new file mode 100644
index 0000000..1fc5d04
--- /dev/null
+++ b/tests/gnu/execdir_self.sh
@@ -0,0 +1,9 @@
+cd "$TEST"
+mkdir foo
+cat >foo/bar.sh <<EOF
+#!/bin/sh
+printf '%s\n' "\$@"
+EOF
+chmod +x foo/bar.sh
+
+bfs_diff . -name bar.sh -execdir {} {} \;