Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Oct 2017 15:43:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 220587] /bin/sh Incorrect options handling
Message-ID:  <bug-220587-15-AJRxTXH1wx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220587-15@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220587-15@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=3D220587

Jilles Tjoelker <jilles@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |In Progress

--- Comment #13 from Jilles Tjoelker <jilles@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*. T=
hese
are all of the form ${SH} -c 'command' -- arg0 arg1 ... where current sh wi=
ll
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 commit=
ted.

--=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-220587-15-AJRxTXH1wx>