rush
Revamped UNIX Shell
 All Data Structures Files Functions Variables Macros
Data Fields
ShCommand Struct Reference

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

Detailed Description

The ShCommand structure contains a parsed command.

Field Documentation

char** argv

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.


The documentation for this struct was generated from the following file: