my connection is back!
A week without a proper pipe left me in a big mess.
My shell is coming along beautifully.
For those interested, the following lines will do a good part of the shell's backend.
Wildcard, shell variables, the works! wordexp will do all that for you!
wordexp(input, &result, 0);
strcpy(p.cmd, result.we_wordv[0]); i=0;
while(result.we_wordv[i]){
strcpy(args[i], result.we_wordv[i]); i++;
}
Easy as pie!
At last...
Posted by Srichand Pendyala Monday, December 19, 2005 at 12:25 PM