Re: Writing a unix command prompt



repairman2003@xxxxxxxxx wrote:
I'm writing a command prompt for unix and I've run into some problems:

 [snip]

The problems
1.  The workaround listed above.
2.  One argument commands work fine but multiple doesn't.  Eg. ls -a
works fine, ls -al works fine but ls -a -l doesn't work.  Any
subsequent commands that don't have arguments don't work either, eg.
ls works, then ls -a works, but ls again doesn't work.

Any help is greatly appriciated!
use getopt(3) to parse your command line.

Robert

.