tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: '/bin/sh -c' with multiple args
Date: Thu, 4 Dec 2025 22:01:56 -0000 (UTC)
From: mlelstv%serpens.de@localhost (Michael van Elst)
Message-ID: <10gt0ck$9jl$1%serpens.de@localhost>
| The option '-c' takes a single argument (command_string),
That's not even close to correct, -c takes no argument at all.
The only shell option with an arg is -o, all the rest are simply
flags.
What -c does is change how the remaining args (after the options)
are parsed, and the Jan (plus Roland and RVP) are all correct on
how it is intended to work. And does work (which doesn't mean
no bugs in how people attempt to test it however).
| The SYNOPSIS on the man page seems to wrong, or at least,
| misleading.
It isn't, but you do need to actually read the text to interpret it.
kre
Home |
Main Index |
Thread Index |
Old Index