pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/regress/path
Module Name: pkgsrc
Committed By: rillig
Date: Sun Feb 9 22:28:58 UTC 2020
Added Files:
pkgsrc/regress/path: spec
Log Message:
regress/path: demonstrate wrong handling of PATH directories with spaces
See PR pkg/53959.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/regress/path/spec
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/regress/path/spec
diff -u /dev/null pkgsrc/regress/path/spec:1.1
--- /dev/null Sun Feb 9 22:28:58 2020
+++ pkgsrc/regress/path/spec Sun Feb 9 22:28:58 2020
@@ -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$"
+}
Home |
Main Index |
Thread Index |
Old Index