Re: Running an editor from ANSI C

Liste des GroupesRevenir à l c 
Sujet : Re: Running an editor from ANSI C
De : malcolm.arthur.mclean (at) *nospam* gmail.com (Malcolm McLean)
Groupes : comp.lang.c
Date : 12. Jun 2024, 10:08:05
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4bl16$1ieto$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Mozilla Thunderbird
On 10/06/2024 18:14, Richard Harnden wrote:
On 10/06/2024 14:19, Malcolm McLean wrote:
>
Well that's a way of doing it. But it's pretty inconvenient. The shell lets you edit a FileSystem, XML file in place. Then of course I've got to test bbx_filesystem.c very rigorously because it must work, it's the heart of BabyXFS. So by writing the shell, I flush out any problems with it.
>
And of course now the fun part of the project comes in. I add MiniBasic to the shell, so you can run basic programs from it.
>
 I'd expect to run ksh commands from within ksh, bash commands from within bash, etc.
 I wouldn't expect a filesystem to be part of the shell at all.
 
On 10/06/2024 18:14, Richard Harnden wrote:
On 10/06/2024 14:19, Malcolm McLean wrote:
>
Well that's a way of doing it. But it's pretty inconvenient. The shell
lets you edit a FileSystem, XML file in place. Then of course I've got
to test bbx_filesystem.c very rigorously because it must work, it's
the heart of BabyXFS. So by writing the shell, I flush out any
problems with it.
>
And of course now the fun part of the project comes in. I add
MiniBasic to the shell, so you can run basic programs from it.
>
>
I'd expect to run ksh commands from within ksh, bash commands from
within bash, etc.
>
I wouldn't expect a filesystem to be part of the shell at all.
>
>
You'd expect to have a FileSystem file, and to type in at your ksh orz
zsh, cd "myfilesysyem.xml" and for ksh to mount it. But of course ksh
can't do that, because it doesn't recognise that format. So you have to
switch to the Baby X shell. And so your $ ksh promt is replaced by BBX$
prompt, to remind you that you are now in the Baby X shell and have a
limited set of commands, though of course you have cd, ls, cp, mv, rm,
edit invokes the text editor, and, though it doesn't do anything useful
yet, bb runs the MiniBasic interpreter.
And of course you also need "import" and "export" to transfer files int
he FileSystem XML file to and from the host.
And I've just written an ls which runs on a host computer, and that will
become the ls command. Currently it just prints out a list of files in
the current directory.
The when that is done, the next challenge is to add a grep as an
external command, not built into the shell like the other commands.
--
Check out my hobby project.
http://malcolmmclean.github.io/babyxrc

Date Sujet#  Auteur
5 Jun 24 * Running an editor from ANSI C88Malcolm McLean
6 Jun 24 `* Re: Running an editor from ANSI C87Lawrence D'Oliveiro
6 Jun 24  `* Re: Running an editor from ANSI C86Malcolm McLean
6 Jun 24   +* Re: Running an editor from ANSI C80Janis Papanagnou
6 Jun 24   i+- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
6 Jun 24   i`* Re: Running an editor from ANSI C78Malcolm McLean
6 Jun 24   i `* Re: Running an editor from ANSI C77David Brown
6 Jun 24   i  +- Re: Running an editor from ANSI C1Malcolm McLean
6 Jun 24   i  +* Re: Running an editor from ANSI C3Richard Harnden
6 Jun 24   i  i`* Re: Running an editor from ANSI C2Malcolm McLean
7 Jun 24   i  i `- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
6 Jun 24   i  `* Re: Running an editor from ANSI C72Keith Thompson
7 Jun 24   i   +* Re: Running an editor from ANSI C30Malcolm McLean
7 Jun 24   i   i+* Re: Running an editor from ANSI C28Keith Thompson
7 Jun 24   i   ii+* Re: Running an editor from ANSI C26Malcolm McLean
7 Jun 24   i   iii`* Re: Running an editor from ANSI C25Keith Thompson
7 Jun 24   i   iii +* Re: Running an editor from ANSI C13Lawrence D'Oliveiro
7 Jun 24   i   iii i`* Re: Running an editor from ANSI C12Michael S
8 Jun 24   i   iii i +* Re: Running an editor from ANSI C6Lawrence D'Oliveiro
8 Jun 24   i   iii i i`* Re: Running an editor from ANSI C5Michael S
8 Jun 24   i   iii i i +- Re: Running an editor from ANSI C1Malcolm McLean
9 Jun 24   i   iii i i `* Re: Running an editor from ANSI C3Lawrence D'Oliveiro
9 Jun 24   i   iii i i  `* Re: Running an editor from ANSI C2Michael S
10 Jun 24   i   iii i i   `- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
8 Jun 24   i   iii i +* Re: Running an editor from ANSI C4Keith Thompson
9 Jun 24   i   iii i i+- Re: Running an editor from ANSI C1Kaz Kylheku
9 Jun 24   i   iii i i`* Re: Running an editor from ANSI C2Lawrence D'Oliveiro
9 Jun 24   i   iii i i `- Re: Running an editor from ANSI C1Keith Thompson
9 Jun 24   i   iii i `- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
7 Jun 24   i   iii +* Re: Running an editor from ANSI C8Malcolm McLean
7 Jun 24   i   iii i+* Re: Running an editor from ANSI C5Janis Papanagnou
7 Jun 24   i   iii ii`* Re: Running an editor from ANSI C4Malcolm McLean
7 Jun 24   i   iii ii +- Re: Running an editor from ANSI C1Richard Harnden
7 Jun 24   i   iii ii +- Re: Running an editor from ANSI C1Ben Bacarisse
7 Jun 24   i   iii ii `- Re: Running an editor from ANSI C1Kaz Kylheku
7 Jun 24   i   iii i+- Re: Running an editor from ANSI C1Keith Thompson
8 Jun 24   i   iii i`- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
8 Jun 24   i   iii `* Re: Running an editor from ANSI C3Chris M. Thomasson
8 Jun 24   i   iii  `* Re: Running an editor from ANSI C2Lawrence D'Oliveiro
10 Jun 24   i   iii   `- Re: Running an editor from ANSI C1Chris M. Thomasson
7 Jun 24   i   ii`- Re: Running an editor from ANSI C1Malcolm McLean
7 Jun 24   i   i`- Re: Running an editor from ANSI C1Kaz Kylheku
7 Jun 24   i   `* Re: Running an editor from ANSI C41Lawrence D'Oliveiro
7 Jun 24   i    +- Re: Running an editor from ANSI C1Malcolm McLean
7 Jun 24   i    `* Re: Running an editor from ANSI C39David Brown
7 Jun 24   i     `* Re: Running an editor from ANSI C38Lawrence D'Oliveiro
7 Jun 24   i      +- Re: Running an editor from ANSI C1Malcolm McLean
7 Jun 24   i      +* Re: Running an editor from ANSI C8James Kuyper
8 Jun 24   i      i`* Re: Running an editor from ANSI C7Lawrence D'Oliveiro
8 Jun 24   i      i `* Re: Running an editor from ANSI C6James Kuyper
8 Jun 24   i      i  +* Re: Running an editor from ANSI C4Lawrence D'Oliveiro
8 Jun 24   i      i  i`* Re: Running an editor from ANSI C3Malcolm McLean
8 Jun 24   i      i  i +- Re: Running an editor from ANSI C1Chris M. Thomasson
9 Jun 24   i      i  i `- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
8 Jun 24   i      i  `- Re: Running an editor from ANSI C1Malcolm McLean
7 Jun 24   i      `* Re: Running an editor from ANSI C28David Brown
7 Jun 24   i       `* Re: Running an editor from ANSI C27Malcolm McLean
8 Jun 24   i        +* Re: Running an editor from ANSI C4Malcolm McLean
8 Jun 24   i        i+* Re: Running an editor from ANSI C2Kaz Kylheku
8 Jun 24   i        ii`- Re: Running an editor from ANSI C1Malcolm McLean
8 Jun 24   i        i`- Re: Running an editor from ANSI C1James Kuyper
8 Jun 24   i        +* Re: Running an editor from ANSI C4Kaz Kylheku
8 Jun 24   i        i`* Re: Running an editor from ANSI C3Malcolm McLean
8 Jun 24   i        i `* Re: Running an editor from ANSI C2Kaz Kylheku
8 Jun 24   i        i  `- Re: Running an editor from ANSI C1Malcolm McLean
9 Jun 24   i        `* Re: Running an editor from ANSI C18David Brown
10 Jun 24   i         `* Re: Running an editor from ANSI C17Malcolm McLean
10 Jun 24   i          `* Re: Running an editor from ANSI C16David Brown
10 Jun 24   i           `* Re: Running an editor from ANSI C15Malcolm McLean
10 Jun 24   i            `* Re: Running an editor from ANSI C14Richard Harnden
11 Jun 24   i             +* Re: Running an editor from ANSI C2Malcolm McLean
11 Jun 24   i             i`- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
12 Jun 24   i             `* Re: Running an editor from ANSI C11Malcolm McLean
12 Jun 24   i              +* Re: Running an editor from ANSI C7David Brown
12 Jun 24   i              i`* Re: Running an editor from ANSI C6Malcolm McLean
12 Jun 24   i              i `* Re: Running an editor from ANSI C5Richard Harnden
12 Jun 24   i              i  `* Re: Running an editor from ANSI C4David Brown
12 Jun 24   i              i   `* Re: Running an editor from ANSI C3Malcolm McLean
12 Jun 24   i              i    `* Re: Running an editor from ANSI C2Keith Thompson
13 Jun 24   i              i     `- Re: Running an editor from ANSI C1Malcolm McLean
12 Jun 24   i              `* Re: Running an editor from ANSI C3tTh
12 Jun 24   i               `* Re: Running an editor from ANSI C2Malcolm McLean
12 Jun 24   i                `- Re: Running an editor from ANSI C1David Brown
6 Jun 24   +- Re: Running an editor from ANSI C1Lawrence D'Oliveiro
6 Jun 24   +- Re: Running an editor from ANSI C1BGB
6 Jun 24   `* Re: Running an editor from ANSI C3Mikko
6 Jun 24    `* Re: Running an editor from ANSI C2Malcolm McLean
7 Jun 24     `- Re: Running an editor from ANSI C1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal