Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean Newsgroups: comp.lang.c Subject: Re: Running an editor from ANSI C Date: Sat, 8 Jun 2024 00:00:34 +0100 Organization: A noiseless patient Spider Lines: 42 Message-ID: References: <87o78dzw1a.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 08 Jun 2024 01:00:34 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d8db6ad5098bbcc788314a6f57f92550"; logging-data="2393202"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZYxVszlhsaVn1rwpIhh4bSN2dr4NofEg=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:tc4Glh1YEaMD2BojqXLshcffVVw= Content-Language: en-GB In-Reply-To: Bytes: 2994 On 07/06/2024 21:04, Scott Lurndal wrote: > Malcolm McLean writes: >> On 07/06/2024 15:48, David Brown wrote: >>> On 07/06/2024 12:46, Lawrence D'Oliveiro wrote: >>>> On Fri, 7 Jun 2024 11:31:01 +0200, David Brown wrote: >>>> >>>>> But many people have lots of use of programming in C without any kind of >>>>> POSIX functionality ... >>>> >>>> And all those same programs work in the presence of POSIX functionality, >>>> plus you get access to a whole lot more besides. >>> >>> No, they do not. >>> >>> And even if POSIX functionality were "present", whatever you mean by >>> that, it would be of no help to many C programs. >>> >>>> >>>> The fact that cases keep arising where POSIX functionality would solve >>>> problems that are discussed in this group belies your point. >>> >>> There's no doubt that for some C programming, there are POSIX functions >>> that could help.  And no doubt that this is the case for Malcolm's project. >>> >>> That does not in any way demonstrate that POSIX is required for all C >>> programming, or that C is "essentially crippled" if POSIX is not available. >>> >> Any idiot can write a shell using Posix. >> >> The whole point is to it in pure C. > > How does your pure "C" shell > spawn a new process without using posix or other OS-specific > APIs? It can call "system". And it can call internal executables written in MiniBasic. It's single-threaded of course. -- Check out Basic Algorithms and my other books: https://www.lulu.com/spotlight/bgy1mm