3 ms·
There's a more recent version: https://github.com/EtchedPixels/FUZIX/blob/master/Applications/V7/cmd/sh/service.c https://github.com/EtchedPixels/FUZIX/blob/ma
by david-given 10y ago
There's a more recent version:
https://github.com/EtchedPixels/FUZIX/blob/master/Applications/V7/cmd/sh/service.c https://github.com/EtchedPixels/FUZIX/blob/master/Applicatio...
I spent some time making it work on modern machines, and it's... I don't really want to use the word 'bad'; because I don't think it is. I kept finding issues which I would spend ages tracing through the code muttering about ancient C which didn't understand alignment and stuff, and then discover that the code was actually doing everything right and the problem was at my end. I couldn't find a single bug in it.
But incomprehensible --- oh god yes. The way it handles memory is really bizarre. The parser is really bizarre (there's the famous Tom Duff quote: "
Nobody really knows what the Bourne shell’s grammar is. Even
examination of the source code is little help."). And then they interact!