/* Skeletal Shell for simple command */

main (argc, argv, envp)
int argc;
char **argv, **envp;
{
   int child, status; char command [80], *comargv[10];

   do {
       printf ("\n$ "); /* Print prompt string */
       getline (command);
       parse (command, comargv);
       if ((child = fork()) != 0) 
          /* Parent Shell executes here. */
          while (child != wait (&status))
	      ;
       else /* Child executes here. */
	  execve (command, comargv, envp);
    } while (1);
}
