[Bug 220587] /bin/sh Incorrect options handling
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Oct 8 15:44:00 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220587
Jilles Tjoelker <jilles at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Open |In Progress
--- Comment #13 from Jilles Tjoelker <jilles at FreeBSD.org> ---
This change breaks various ports. Some problems are in Mk/bsd.port.mk
(COPYTREE_BIN and COPYTREE_SHARE) affecting many ports and in lang/ruby*. These
are all of the form ${SH} -c 'command' -- arg0 arg1 ... where current sh will
expand $0 to arg0 and $1 to arg1, while POSIX says to and this patch makes sh
expand $0 to --, $1 to arg0 and $2 to arg1.
The fix is to remove the -- and to, if arg0 may start with '-', add a dummy
arg0 and adjust the command string accordingly.
These fixes need to be committed to ports before the sh patch can be committed.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-standards
mailing list