simple shell (c), fgets problem
Could you please look at my source at http://razza.org/source.html (its formatted, and color coded)
I have two problems, they seem to be related
when I use fgets to grab from the command line, rather than gets, I seem unable to run programs like ping ipaddress (ping doesnt receive the ip) If I use gets ping will work.
However my shell should also run programs in the background (that is fork the process off, and return to the command prompt before the process has finished). To do this you would type say echo hello & (the '&' should always trail), this by the way actually works for echo but if you try ls / & ( then it complains)
I presumed that their is something wrong with the parse function, so I substituted another users function in, the shell then worked correctly with fgets.
Since I check for the & symbol in my parse function I was unable to check wether the background process bug is also fixed.
Hopefully one of you guys can tell me whats up with my parse function