[Bug 278653] sh: fix sh -c -e cmd as per POSIX

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 Apr 2024 21:03:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278653

--- Comment #8 from Christian Weisgerber <naddy@FreeBSD.org> ---
(In reply to Benjamin Takacs from comment #6)
That takes me to my starting point, which was a discussion about shell
scripting where somebody was bending over backwards to use POSIX-ly correct
code that handled all corner cases, so he used "sh -c --" and was quite
astonished when I pointed out that this breaks on FreeBSD.

Obviously system(3) and popen(3) will need to be fixed accordingly.

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