Sujet : Re: Running an editor from ANSI C
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 06. Jun 2024, 02:18:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3r2pl$16mtl$1@dont-email.me>
References : 1
User-Agent : Pan/0.158 (Avdiivka; )
On Wed, 5 Jun 2024 11:59:19 +0100, Malcolm McLean wrote:
So I just call system with nano.
The trouble with system(3) is it requires a shell as an intermediary, with
consequent pitfalls involving command-line parsing.
More robust to use posix_spawn(3).