Open
Description
There's a convention in the GNU userspace for a bare '--' arg to indicate "everything in argv following the -- is not to be interpreted as a flag, just use as input to the program"
In the case of su
, when you want su
to run a command, you currently must use "-c/--command WORD_REPRESENTING_COMMAND", which will then be interpolated by another shell's -c invocation running as the target user.
This can be rather annoying and error prone, depending on the complexity of whatever is being executed via su
.
I'd like to propose supporting "--" as an alternative to -c/--command which instead treats whatever remains in argv as the argv to supply directly to execve(), bypassing any further shell invocation or subsequent word splitting.
Metadata
Metadata
Assignees
Labels
No labels