Lines Matching defs:echo
207 bool echo;
230 * templates for echo control and error control.
251 * causes an error, so be it. Any templates set up to echo the command will
255 * The command-line flags "echo" and "exit" also control the behavior. The
256 * "echo" flag causes the shell to start echoing commands right away. The
282 const char *echoTmpl; /* template to echo a command */
295 const char *echoFlag; /* shell flag to echo commands */
300 /* Whether to echo the command before or instead of running it. */
301 bool echo;
391 "echo \"%s\"\n", /* .echoTmpl */
401 * SH description. Echo control is also possible and, under
414 "echo \"%s\"\n", /* .echoTmpl */
440 "echo \"%s\"\n", /* .echoTmpl */
449 * CSH description. The csh can do echo control by playing
450 * with the setting of the 'echo' shell variable. Sadly,
463 "echo \"%s\"\n", /* .echoTmpl */
548 !job->echo ? 's' : '-',
810 out_cmdFlags->echo = true;
816 out_cmdFlags->echo = DEBUG(LOUD);
895 ShellWriter_ErrOff(ShellWriter *wr, bool echo)
897 if (echo)
900 if (echo)
905 ShellWriter_ErrOn(ShellWriter *wr, bool echo)
907 if (echo)
910 if (echo)
926 if (job->echo && inout_cmdFlags->echo) {
934 inout_cmdFlags->echo = false;
953 ShellWriter_ErrOff(wr, job->echo && inout_cmdFlags->echo);
1016 if (!cmdFlags.echo) {
1017 if (job->echo && run && shell->hasEchoCtl)
1020 cmdFlags.echo = true;
1035 if (job->echo && cmdFlags.echo) {
1038 cmdFlags.echo = false;
1060 ShellWriter_ErrOn(wr, cmdFlags.echo && job->echo);
1062 if (!cmdFlags.echo)
1354 Job_Touch(GNode *gn, bool echo)
1366 if (echo || !GNode_ShouldExecute(gn)) {
1492 if (job->echo)
1629 job->echo && shell->echoFlag != NULL
1640 if (job->echo && shell->echoFlag != NULL) {
1666 job->echo = false;
1695 job->echo = !(opts.silent || gn->type & OP_SILENT);
1735 Job_Touch(gn, job->echo);
2233 * echo Command to turn echoing on
2287 } else if (strncmp(arg, "echo=", 5) == 0) {