Deutsch English Français Italiano |
<v406q5$29fla$5@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: Running an editor from ANSI C Date: Fri, 7 Jun 2024 23:57:58 -0000 (UTC) Organization: A noiseless patient Spider Lines: 21 Message-ID: <v406q5$29fla$5@dont-email.me> References: <v3pge7$uf2i$1@dont-email.me> <v3r2pl$16mtl$1@dont-email.me> <v3r7v8$1b57j$1@dont-email.me> <v3rek5$1c4i5$1@dont-email.me> <v3rrtm$1e6g8$1@dont-email.me> <v3ru84$1eafb$1@dont-email.me> <87o78dzw1a.fsf@nosuchdomain.example.com> <v3te2i$1ms1q$1@dont-email.me> <87frtpznoa.fsf@nosuchdomain.example.com> <v3uimm$20jte$3@dont-email.me> <871q59yty1.fsf@nosuchdomain.example.com> <v3uogs$21g4g$6@dont-email.me> <20240607142429.0000067b@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 08 Jun 2024 01:57:58 +0200 (CEST) Injection-Info: dont-email.me; posting-host="41ddd3104c6f00811ea81eed5288e7ff"; logging-data="2408106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DnwaGs7r0A6cPP74/7L2H" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:cpDs931bkHI3NRGkVH6pnJuu9dM= Bytes: 2045 On Fri, 7 Jun 2024 14:24:29 +0300, Michael S wrote: > On Fri, 7 Jun 2024 10:47:57 -0000 (UTC) > Lawrence D'Oliveiro <ldo@nz.invalid> wrote: > >> On Fri, 07 Jun 2024 02:37:42 -0700, Keith Thompson wrote: >> >> > As for portability, I'm not aware of the $EDITOR convention being >> > used on non-POSIX systems. >> >> Can non-POSIX systems offer anything better? Any worthwhile >> alternative? >> >> No. > > Yes. The one below is better. > ShellExecute(NULL, "edit", filename, NULL, NULL, SW_NORMAL); On Windows, that combines the command-line arguments into a single string. Which then has to be teased apart by the receiving program. Assuming the two ends can agree on consistent rules for doing so.