This is an appendix to Understanding Unix/Linux Programming written for people interested in Ada programming on POSIX systems.

A Programmable Shell: Shell Variables and the Environment

Section 9.3, page 286-293

Source code for smsh1:

We compile and test smsh1:

% gnatmake -P smsh1
[...]
% ./smsh1
> ps -f
UID        PID  PPID  C STIME TTY          TIME CMD
sparre   13356 13355  0 21:50 pts/1    00:00:01 -zsh
sparre   28306 13356  0 22:30 pts/1    00:00:00 ./smsh1
sparre   28334 28306  0 22:30 pts/1    00:00:00 ps -f
press Ctrl-D here
%

Programming exercises, pages 281-282

-- 

Go to next chapter.

Collected examples:
posix-in-ada.zip
Based on:
Understanding Unix/Linux Programming, Bruce Molay, ISBN 0-13-008396-8.
Main page:
http://edb.jacob-sparre.dk/Posix_in_Ada/
Written by:
Jacob Sparre Andersen.
Latest update:
11th of September, 2007