Liste des Groupes | Revenir à cl c |
On 07/06/2024 15:48, David Brown wrote:Only an idiot /would/ write a shell, unless they thought they could create something significantly better in some way than the multitude of existing shells.On 07/06/2024 12:46, Lawrence D'Oliveiro wrote:Any idiot can write a shell using Posix.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.
>
The whole point is to it in pure C. Without a single call to a function that isn't in the C standard library.That's not a point - that is /pointless/.
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.You have the choice. You can write things that you want to write in the way you want to write them, simply for the fun of it. Or you can write things that people will use. Both are perfectly good ways to spend your time, and both can be rewarding. But don't kid yourself that you are writing a shell that people will use, or that it is better for potential users if you impose silly and arbitrary restrictions on the way you write your code. Be honest about what you are doing - it's a project you are working on for your own fun, and there is absolutely nothing wrong with that. You don't have to try to delude yourself to justify having a hobby!
Les messages affichés proviennent d'usenet.