summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-02-09 22:28:58 +0000
committerrillig <rillig@pkgsrc.org>2020-02-09 22:28:58 +0000
commite20660d20a52ef80d4b2b5ac9dd338a52e3566a2 (patch)
tree9a9fa4aff2b6d8b63dfcb983b57794f8c10336a5 /regress
parent6e27ad2c0714a9edb327b839adc7117bd9f39d23 (diff)
downloadpkgsrc-e20660d20a52ef80d4b2b5ac9dd338a52e3566a2.tar.gz
regress/path: demonstrate wrong handling of PATH directories with spaces
See PR pkg/53959.
Diffstat (limited to 'regress')
-rw-r--r--regress/path/spec26
1 files changed, 26 insertions, 0 deletions
diff --git a/regress/path/spec b/regress/path/spec
new file mode 100644
index 00000000000..48cab9ba22a
--- /dev/null
+++ b/regress/path/spec
@@ -0,0 +1,26 @@
+#! /bin/sh
+# $NetBSD: spec,v 1.1 2020/02/09 22:28:58 rillig Exp $
+#
+# Ensures that the PATH variable can contain spaces, and that commands in
+# such directories can be found and executed.
+#
+# For its own directories (PREFIX, WRKDIR), pkgsrc does not support paths
+# with spaces, though.
+
+do_test() {
+ env \
+ PATH="/Path with spaces:$PATH:/Path with spaces" \
+ PKGNAME="package-1.0" \
+ $TEST_MAKE \
+ -f "../../mk/bsd.pkg.mk" \
+ show-var VARNAME=PATH > "$TEST_OUTFILE"
+}
+
+check_result() {
+ exit_status 0
+
+ # FIXME: the spaces must be preserved.
+ output_require ":/Path:with:spaces:"
+ # FIXME: the spaces must be preserved.
+ output_require "/Path:with:spaces$"
+}