Received: by mail.netbsd.org (Postfix, from userid 605) id 6413184D69; Sun, 9 Feb 2020 22:28:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id DF50484D67 for ; Sun, 9 Feb 2020 22:28:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id V-_3N6upK-JU for ; Sun, 9 Feb 2020 22:28:58 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 42A8784D63 for ; Sun, 9 Feb 2020 22:28:58 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 3620DFBF4; Sun, 9 Feb 2020 22:28:58 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1581287338162140" MIME-Version: 1.0 Date: Sun, 9 Feb 2020 22:28:58 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/regress/path To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20200209222858.3620DFBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1581287338162140 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1581287338162140 Content-Disposition: inline Content-Length: 897 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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$" +} --_----------=_1581287338162140--