Current process in NOS??
- To: Dave Fritsche <firstname.lastname@example.org.MOT.COM>, tcp-group <tcp-group@ucsd.EDU>
- Subject: Current process in NOS??
- From: Anders.Klemets@CS.CMU.EDU
- Date: Wed, 23 Jan 91 15:26:10 -0500 (EST)
You Could do
extern sturct proc *Cmdpp;
if (Curproc == Cmdpp)
in cmdparse() but it would probably be a cleaner solution if you move
the call to doexec() to the appropriate place in main.c and leave
The routine in main.c that calls cmdparse() would call doexec() if
cmdparse() returns -1.
But using the '!' character as a shell escape prefix as Milton Miller
suggested is probably even better.