3 ms·
You might have a look the source for Advanced UNIX Programming by Marc Rochkind, too. In the book it starts literally with a one-shot shell - exec - and moves
by emmelaich 2y ago
You might have a look the source for Advanced UNIX Programming by Marc Rochkind, too.
In the book it starts literally with a one-shot shell - exec - and moves onto fancier ones, including piping etc.
First version of source accompanying the book is at https://github.com/gmarler/AUPv2/blob/master/c5/sh0.c https://github.com/gmarler/AUPv2/blob/master/c5/sh0.c
and does multiple commands.
- rramadass 2y agoThis is a great book; in some ways even better than Stevens' APUE. If possible get an old used copy of the 1st edition (the 2nd edition was written 20 years after the 1st !) too just to compare and get an idea of how the system calls have evolved in the intervening two decades. And the best part? All that mentioned in the 1st edition will still work! Also it could be used as a template to develop one's own OS i.e. implement the minimal set of system calls listed in the 1st edition.