Sujet : Re: Running an editor from ANSI C
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.cDate : 08. Jun 2024, 07:35:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v40u3f$2gehm$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 6/7/2024 2:37 AM, Keith Thompson wrote:
Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
[...]
As for portability, I'm not aware of the $EDITOR convention being used
on non-POSIX systems. I suppose there's no real guarantee that, for
example, system("nano filename") will invoke nano on the named file;
different systems could have different command syntax.
Well, think of a system that has a program called nano, except it's a little different:
system("nano filename")
NANO = Nuclear Annihilation Non-Returnable Operation
Say, NANO does not know the file types, so it goes into default mode. Nuke the system...
nano might run a text editor... Or it might run something else... Fair enough?