So I’ve only had a little bit of time to work on ntd. But at least I did do something, though nothing major. I got rid of the
gets() function by replacing it with
getline(), I know this is a GNU extension, but it’s apparently recommended and for now I don’t think anyone other than myself is using it, and since I only use archlinux I’m in minimal danger of incompatibilities.
I’m still getting some errors with valgrind, but if I eventually figure them out I will be able to fix it.
Maybe tomorrow I can finally start adding another command.
So, I’m trying again… After feeling I couldn’t achieve what I wanted with toudou or toudou2 through 5, I’m starting from scratch again with ntd (New toudou).
This time I’m first going to focus on creating a shell in which I can perform the actions that I want. After that I will start looking at/thinking about user interfaces again.
Right now it’s only a tiny shell with some big holes in it (usage of gets, for example) that need to be fixed, and it only knows help and exit for commands, but it’s a start, again.
The code for it is here, though I can’t recommend looking at it yet, it might burn your eyes out.