%
% This file was automatically produced at Feb 27 2003, 22:51:56 by
% c2latex simplesh-a.c
%
\expandafter\ifx\csname indentation\endcsname\relax%
\newlength{\indentation}\fi
\setlength{\indentation}{0.5em}
\begin{flushleft}
{\bf int} main( {\bf int} argc, {\bf char} $\ast$$\ast$argv )\mbox{}\\
\{\mbox{}\\
\hspace*{8\indentation}{\bf char} $\ast$prog\_name = basename( $\ast$argv );\mbox{}\\
\hspace*{8\indentation}print\_prompt( prog\_name );\mbox{}\\
\hspace*{8\indentation}read\_command();\mbox{}\\
\hspace*{8\indentation}{\bf for} ( ;; ) \{\mbox{}\\
\hspace*{16\indentation}{\bf int} pid = fork();\mbox{}\\
\hspace*{16\indentation}{\bf if} ( pid == 0 ) \{\mbox{}\\
\hspace*{24\indentation}execvp( args[ 0 ], args );\mbox{}\\
\hspace*{16\indentation}\}\mbox{}\\
\hspace*{16\indentation}wait( NULL );\mbox{}\\
\hspace*{16\indentation}print\_prompt( prog\_name );\mbox{}\\
\hspace*{16\indentation}read\_command();\mbox{}\\
\hspace*{8\indentation}\}\mbox{}\\
\}\mbox{}\\
\end{flushleft}
