summaryrefslogtreecommitdiffstats
path: root/tests/bfs/execdir_path_relative_slash.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-06-15 09:57:45 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-06-15 10:09:23 -0400
commitcb40f51e4e6375a10265484b6959c6b1b0591378 (patch)
tree14b181a135857e6b5ea956f9a408506f7c24c5fa /tests/bfs/execdir_path_relative_slash.sh
parentdef4a832425bfe94b96b8cb1146a83552b754fb4 (diff)
downloadbfs-cb40f51e4e6375a10265484b6959c6b1b0591378.tar.xz
parse: Allow relative $PATH entries with explicit executable paths
$ bfs -execdir /bin/exe {} \; is perfectly safe regardless of what's in $PATH.
Diffstat (limited to 'tests/bfs/execdir_path_relative_slash.sh')
-rw-r--r--tests/bfs/execdir_path_relative_slash.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bfs/execdir_path_relative_slash.sh b/tests/bfs/execdir_path_relative_slash.sh
new file mode 100644
index 0000000..fb5a924
--- /dev/null
+++ b/tests/bfs/execdir_path_relative_slash.sh
@@ -0,0 +1 @@
+PATH="foo:$PATH" bfs_diff basic -execdir /bin/sh -c 'printf "%s\\n" "$@"' sh {} +