Deutsch English Français Italiano |
<v3pge7$uf2i$1@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: Malcolm McLean <malcolm.arthur.mclean@gmail.com> Newsgroups: comp.lang.c Subject: Running an editor from ANSI C Date: Wed, 5 Jun 2024 11:59:19 +0100 Organization: A noiseless patient Spider Lines: 18 Message-ID: <v3pge7$uf2i$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 05 Jun 2024 12:59:20 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3e63a29a3fa672628efcdb0c87c84718"; logging-data="998482"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/n4+Sn22DuuSDDm1Fi/CHAstCs1Devgqk=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:sS+zItSsjOPipwIEJ8djd6sUnXs= Content-Language: en-GB Bytes: 1538 I'm writing a shell in pure ANSI C, that oerates on FileSystem XML files. So it's a great amount of fun. The BBXFS shell. Except a real shell runs external programs. Which I have to do to all you to edit text files. Because a shell is no good if you can't edit text files easily, and theres no way of doing that in pure C due to the limitations of stdin. So I just call system with nano. And it works. But it's hardly robust, and I'd like to get this right. Check out the shell at https://github.com/MalcolmMcLean/babyxrc -- Check out Basic Algorithms and my other books: https://www.lulu.com/spotlight/bgy1mm