Date: Sun, 15 Oct 2017 15:31:17 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 222870] bsd.port.mk: COPYTREE_* do not work with POSIX-compliant sh -c Message-ID: <bug-222870-13-1KevoKPwTF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-222870-13@https.bugs.freebsd.org/bugzilla/> References: <bug-222870-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222870 --- Comment #6 from commit-hook@freebsd.org --- A commit references this bug: Author: jilles Date: Sun Oct 15 15:30:20 UTC 2017 New revision: 452153 URL: https://svnweb.freebsd.org/changeset/ports/452153 Log: Make COPYTREE_* work with POSIX-compliant sh -c The COPYTREE_BIN and COPYTREE_SHARE macros use constructs like sh -c 'command' -- arg0 arg1 and assume that $0 will expand to arg0 and $1 will expand to arg1. Our current sh implements it that way. However, POSIX specifies that $0 w= ill expand to -- and $1 will expand to arg0, since the command string is an operand and not an option-argument. Bug #220587 requests making sh POSIX-compliant in this regard. If the argument after the command string does not start with '-', the current sh behaves as required by POSIX. Therefore, adjust the macros so this is always the case. PR: 222870 Approved by: portmgr (antoine) Changes: head/Mk/bsd.port.mk --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222870-13-1KevoKPwTF>