rush
Revamped UNIX Shell
|
The ShCommand structure contains a parsed command. More...
#include <shellutils.h>
Data Fields | |
char * | inFile |
char * | outFile |
bool | background |
const char * | parseError |
char * | cmdLine |
char ** | argv |
The ShCommand structure contains a parsed command.
char** argv |
NULL-terminated array of the command - not including '<', inFile, '>', outFile or '&'.
bool background |
true if the command is to be executed in the background, false otherwise.
char* cmdLine |
Copy of the original, un-tokenized command line (with '<', '>' and '&' if present).
char* inFile |
If redirection of stdin is specified, points to the filename of the input file, otherwise to NULL.
char* outFile |
If redirection of stdout is specified, points to the filename of the output file, otherwise to NULL.
const char* parseError |
Points to an error message if the command line could not be parsed successfully, NULL if parsing was successful.