rush
Revamped UNIX Shell
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

◆ argv

char** argv

NULL-terminated array of the command - not including '<', inFile, '>', outFile or '&'.

◆ background

bool background

true if the command is to be executed in the background, false otherwise.

◆ cmdLine

char* cmdLine

Copy of the original, un-tokenized command line (with '<', '>' and '&' if present).

◆ inFile

char* inFile

If redirection of stdin is specified, points to the filename of the input file, otherwise to NULL.

◆ outFile

char* outFile

If redirection of stdout is specified, points to the filename of the output file, otherwise to NULL.

◆ parseError

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: