pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/regress/path regress/path: demonstrate wrong handling ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d50b75715334
branches:  trunk
changeset: 411320:d50b75715334
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Feb 09 22:28:58 2020 +0000

description:
regress/path: demonstrate wrong handling of PATH directories with spaces

See PR pkg/53959.

diffstat:

 regress/path/spec |  26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diffs (30 lines):

diff -r af0886fc2a78 -r d50b75715334 regress/path/spec
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/path/spec Sun Feb 09 22:28:58 2020 +0000
@@ -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