[Bug 274650] sh does not accept -- after -c

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 05 May 2024 20:05:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274650

--- Comment #5 from Jilles Tjoelker <jilles@FreeBSD.org> ---
sh -c ' --' attempts to invoke the '--' utility regardless of the
interpretation of '-c'.

This does have a side effect of breaking echoed parts of the command (as seen
in bash syntax errors) or column numbers, but it is only necessary if the
command starts with '-'.

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