Deutsch English Français Italiano |
<vbvorg$esm6$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: Command line globber/tokenizer library for C? Date: Thu, 12 Sep 2024 22:09:52 -0000 (UTC) Organization: A noiseless patient Spider Lines: 9 Message-ID: <vbvorg$esm6$3@dont-email.me> References: <lkbjchFebk9U1@mid.individual.net> <vbv04v$aci0$1@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Sep 2024 00:09:53 +0200 (CEST) Injection-Info: dont-email.me; posting-host="fe8eaca0c36637cab02c0b5baab677cf"; logging-data="488134"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uJNXwgrab2kuM/Z2dMbs8" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:xNjDkG9OCsjG0OB+6/SH5FJ2ADA= Bytes: 1400 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.