I had posted months ago asking for help thinking of a toy "systems" programming project to do in Rust.
A kind member of the community suggested writing a simple shell:
The point here is to figure out how to use system libraries (
For example: when you type
emacs &on the terminal (using
bashshell, perhaps), you see a new window of Emacs pop up, and a new prompt arrives. But how does it actually work? Can you write a program that does this? (Note that using the C
system()function is cheating, since that just calls into
bash, more or less)
Can someone give me a direction here? I understand not calling out to the shell using
system in C because that is "cheating"...but what does, "..how to use system libraries" mean? Is nix a C API for interacting with the OS and should I be looking at a crate for Rust like: nix - Rust?