Only calling os.Exec over and over again is not what I envisioned when I started building my own shell. So, in the spirit of first things first, I implemented a few of the commands I use on a daily basis to make the shell actually usable. This makes the whole thing immediately feel a bit more real and also provides some good learning opportunities. While I am lending some of the names from GNU core utilities or similar battle tested collections of tools, I have no intention at all to rewrite all of them or even follow the standard command line interface. A good example is rm. „We ain't no cowards over here.“ There is no double check if I really want to remove a directory. Just delete it. „I know what I am doing.“ … at least that is what I’ll claim until I accidentally nuke a directory I did not intent to, then I will implement the -r flag. A less destructive example is mkdir. Yes, if I specify a path with multiple not existing directories, I really, really, want you to create all of…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.