Liste des Groupes | Revenir à cl c |
On 10/06/2024 18:14, Richard Harnden wrote:Are you really intending to replicate the entire suite of common *nix command line programs with your own versions, just so that they can access the original data within your "filesystem xml" files?On 10/06/2024 14:19, Malcolm McLean wrote:On 10/06/2024 18:14, Richard Harnden 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 14:19, Malcolm McLean wrote:You'd expect to have a FileSystem file, and to type in at your ksh orz>>
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.
>
>
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.
Les messages affichés proviennent d'usenet.