Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2017 14:49:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 220587] /bin/sh Incorrect options handling
Message-ID:  <bug-220587-15-AKLcgPtFAm@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
----------------------------------------------------------------------------
           Assignee|freebsd-standards@FreeBSD.o |jilles@FreeBSD.org
                   |rg                          |

--- Comment #9 from Jilles Tjoelker <jilles@FreeBSD.org> ---
(In reply to Ryan Moeller from comment #7)
I have committed your pre-fix tests. However, the options fix has various c=
ases
where it ignores -c, which may lead to unexpected results (e.g. system("--")
will read commands from standard input). Whenever -c is given, commands mus=
t be
read from the command_string operand; if there is none, the invocation is
invalid and must fail.

I have added a test "invocation/sh-c-missing1.0" for the simplest "sh -c" c=
ase;
however, there are also "sh -c --", "sh -c -", "sh -c -- 'echo hi'" and "sh=
 -c
- 'echo hi'".

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220587-15-AKLcgPtFAm>