Lines Matching refs:commandShell
323 static Shell *commandShell = &shells[DEFSHELL_INDEX]; /* this is the shell to variable
791 if (!commandShell->hasErrCtl) { in JobPrintCommand()
805 commandShell->hasEchoCtl) { in JobPrintCommand()
806 DBPRINTF("%s\n", commandShell->echoOff); in JobPrintCommand()
808 if (commandShell->hasErrCtl) in JobPrintCommand()
815 if (commandShell->hasErrCtl) { in JobPrintCommand()
825 commandShell->hasEchoCtl) { in JobPrintCommand()
826 DBPRINTF("%s\n", commandShell->echoOff); in JobPrintCommand()
827 DBPRINTF("%s\n", commandShell->ignErr); in JobPrintCommand()
828 DBPRINTF("%s\n", commandShell->echoOn); in JobPrintCommand()
830 DBPRINTF("%s\n", commandShell->ignErr); in JobPrintCommand()
832 } else if (commandShell->ignErr && in JobPrintCommand()
833 (*commandShell->ignErr != '\0')) in JobPrintCommand()
846 if (commandShell->hasEchoCtl) { in JobPrintCommand()
847 DBPRINTF("%s\n", commandShell->echoOff); in JobPrintCommand()
849 DBPRINTF(commandShell->errCheck, escCmd); in JobPrintCommand()
853 DBPRINTF(commandShell->errCheck, escCmd); in JobPrintCommand()
856 cmdTemplate = commandShell->ignErr; in JobPrintCommand()
877 if (!commandShell->hasErrCtl && commandShell->errOut && in JobPrintCommand()
878 (*commandShell->errOut != '\0')) { in JobPrintCommand()
880 if (commandShell->hasEchoCtl) { in JobPrintCommand()
881 DBPRINTF("%s\n", commandShell->echoOff); in JobPrintCommand()
883 DBPRINTF(commandShell->errCheck, escCmd); in JobPrintCommand()
887 if ((escCmd[0] == commandShell->commentChar) || in JobPrintCommand()
889 cmdTemplate = commandShell->ignErr; in JobPrintCommand()
891 cmdTemplate = commandShell->errOut; in JobPrintCommand()
911 if (!shutUp && !(job->flags & JOB_SILENT) && commandShell->hasEchoCtl){ in JobPrintCommand()
912 DBPRINTF("%s\n", commandShell->echoOff); in JobPrintCommand()
915 DBPRINTF("%s\n", commandShell->errCheck); in JobPrintCommand()
917 if (shutUp && commandShell->hasEchoCtl) { in JobPrintCommand()
918 DBPRINTF("%s\n", commandShell->echoOn); in JobPrintCommand()
1523 if ((commandShell->exit && (*commandShell->exit != '-')) || in JobMakeArgv()
1524 (commandShell->echo && (*commandShell->echo != '-'))) in JobMakeArgv()
1534 (commandShell->exit ? commandShell->exit : "")), in JobMakeArgv()
1536 (commandShell->echo ? commandShell->echo : ""))); in JobMakeArgv()
1543 if (!(job->flags & JOB_IGNERR) && commandShell->exit) { in JobMakeArgv()
1544 argv[argc] = UNCONST(commandShell->exit); in JobMakeArgv()
1547 if (!(job->flags & JOB_SILENT) && commandShell->echo) { in JobMakeArgv()
1548 argv[argc] = UNCONST(commandShell->echo); in JobMakeArgv()
1777 if (commandShell->noPrint) { in JobOutput()
1778 ecp = Str_FindSubstring(cp, commandShell->noPrint); in JobOutput()
1795 cp = ecp + commandShell->noPLen; in JobOutput()
1806 ecp = Str_FindSubstring(cp, commandShell->noPrint); in JobOutput()
2199 shellName = commandShell->name; in Shell_Init()
2209 if (commandShell->exit == NULL) { in Shell_Init()
2210 commandShell->exit = ""; in Shell_Init()
2212 if (commandShell->echo == NULL) { in Shell_Init()
2213 commandShell->echo = ""; in Shell_Init()
2215 if (commandShell->hasErrCtl && *commandShell->exit) { in Shell_Init()
2217 strcmp(commandShell->exit, &shellErrFlag[1]) != 0) { in Shell_Init()
2222 int n = strlen(commandShell->exit) + 2; in Shell_Init()
2226 snprintf(shellErrFlag, n, "-%s", commandShell->exit); in Shell_Init()
2243 return commandShell->newline; in Shell_GetNewline()
2543 commandShell = sh; in Job_ParseShell()
2579 commandShell = sh; in Job_ParseShell()
2581 commandShell = bmake_malloc(sizeof(Shell)); in Job_ParseShell()
2582 *commandShell = newShell; in Job_ParseShell()
2588 if (commandShell->echoOn && commandShell->echoOff) { in Job_ParseShell()
2589 commandShell->hasEchoCtl = TRUE; in Job_ParseShell()
2592 if (!commandShell->hasErrCtl) { in Job_ParseShell()
2593 if (commandShell->errCheck == NULL) { in Job_ParseShell()
2594 commandShell->errCheck = ""; in Job_ParseShell()
2596 if (commandShell->ignErr == NULL) { in Job_ParseShell()
2597 commandShell->ignErr = "%s\n"; in Job_ParseShell()