version 1.45, 2001/12/02 00:13:16 |
version 1.46, 2002/01/16 01:28:54 |
|
|
char *cmdStart; /* Start of expanded command */ |
char *cmdStart; /* Start of expanded command */ |
char *cp, *bp = NULL; |
char *cp, *bp = NULL; |
bool silent, /* Don't print command */ |
bool silent, /* Don't print command */ |
errCheck, /* Check errors */ |
|
doExecute; /* Execute the command */ |
doExecute; /* Execute the command */ |
|
volatile bool errCheck; /* Check errors */ |
int reason; /* Reason for child's death */ |
int reason; /* Reason for child's death */ |
int status; /* Description of child's death */ |
int status; /* Description of child's death */ |
int cpid; /* Child actually found */ |
int cpid; /* Child actually found */ |
int stat; /* Status of fork */ |
int stat; /* Status of fork */ |
LstNode cmdNode; /* Node where current command is located */ |
LstNode cmdNode; /* Node where current command is located */ |
char **av; /* Argument vector for thing to exec */ |
char ** volatile av; /* Argument vector for thing to exec */ |
int argc; /* Number of arguments in av or 0 if not |
int argc; /* Number of arguments in av or 0 if not |
* dynamically allocated */ |
* dynamically allocated */ |
bool local; /* true if command should be executed |
bool local; /* true if command should be executed |
|
|
GNode *gn = (GNode *)gnp; |
GNode *gn = (GNode *)gnp; |
static char *shargv[4] = { _PATH_BSHELL }; |
static char *shargv[4] = { _PATH_BSHELL }; |
|
|
/* Avoid clobbered variable warnings by forcing the compiler |
|
* to ``unregister'' variables. */ |
|
#if __GNUC__ |
|
(void)&av; |
|
(void)&errCheck; |
|
#endif |
|
silent = gn->type & OP_SILENT; |
silent = gn->type & OP_SILENT; |
errCheck = !(gn->type & OP_IGNORE); |
errCheck = !(gn->type & OP_IGNORE); |
doExecute = !noExecute; |
doExecute = !noExecute; |