Date: Tue, 11 Mar 2025 16:39:23 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 220587] /bin/sh Incorrect options handling Message-ID: <bug-220587-99-MOwm2HyqgU@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-220587-99@https.bugs.freebsd.org/bugzilla/> References: <bug-220587-99@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 Benjamin Takacs <nimaje+fbz@bureaucracy.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nimaje+fbz@bureaucracy.de --- Comment #19 from Benjamin Takacs <nimaje+fbz@bureaucracy.de> --- (In reply to Martijn Dekker from comment #17) POSIX requires system(command); to behave *as if* sh -c -- command was called, for safety, because POSIX requires sh to handle options after -c. I think the better design would be to only allow -c as last argument to sh,= as the SYNOPSIS in our man page says too, that would eliminate all bugs where command could potentially start with -, without requiring everyone to write= -c -- or have a bug in waiting. --=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-99-MOwm2HyqgU>