Sujet : Re: Command line globber/tokenizer library for C?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 12. Sep 2024, 23:09:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbvorg$esm6$3@dont-email.me>
References : 1 2
User-Agent : Pan/0.160 (Toresk; )
On Thu, 12 Sep 2024 17:08:24 +0200, Bonita Montero wrote:
I tried to experiment with that with /proc/<pid>/cmdline. The first
problem was that the arguments aren't space delimited, but broken up
with zeroes.
That’s not a “problem”: it actually simplifies the parsing, because you
can unambiguously extract the original command arguments without having to
apply any complicated parsing/quoting/unquoting rules.