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 : 08. Jun 2024, 13:23:54
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v41f0a$2j12l$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Mozilla Thunderbird
On 08/06/2024 01:32, Kaz Kylheku wrote:
On 2024-06-07, Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
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. Without a single call to a function
that isn't in the C standard library.
 A shell written using nothing but the standard library ends up being
a shell to that library: a user interface making available the services
of the library to the user.
 When you think about what those are, they are not much.
 Your shell won't be able to juggle multiple processes between the
foreground and background, or arrange pipes or anything of the sort.
 Remember, the system() function is an API to a command interpreter.
 A strictly conforming ISO C programm cannot rely on it.
 The command syntax is not specified, and command execution is
required to work at all. If system(NULL) returns zero, it means
that a command interpreter is not available.
 Relying another command interpreter while purporting to be writing one
is a kind of fraud, too.
 
And make it fully functional. A real shell, that people will want to
really use. That's my hobby project. I'm a free man now. I've got the
time. I don't have to write code that makes money any more.
 When I mentally survey what is possible in a purely ANSI C shell,
what it will enable the user to do as a shell, I can't imagine why
anyone would want to use it.
 I mean, of course, it could contain, say, a fairly engaging and deep
text adventure game. Or a complex and capable programming language (with
poor system access, but interesting nevertheless).
 Bug I take it that by shell you mean something which is primarily a
command interpreter for driving an operating system, not an adventure
game engine, or sophsticated programming language run-time.
 
It calls system so that real users can use it for real.
But as you say, that is a cheat. But it's a serious cheat, because what the serious users want to do is to edit FileSystem files. So let's say we've a picture of Rishi with a dog embedded in a html file on the archive, and we want to change the picture to Rishi with a cat. The serious user will do that with PhotoShop. So he'll call the shell, export the file, run PhotoShop on it, and then reimport it.
He's not going to write a MiniBasic script to take the image in and process it, without exporting it from the shell. Technically he will be able to achieve that. But that's for the fun users.
So at the moment I'm concentrating on getting the "ls" command just right. Currently it just lists out the files in the working directory, and it's getting wildcards and sorts and options. And it's not exactly implenting a shell, but it's what the serious users will want, and so they come first. Then I get the Basic working properly.
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

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