From: ceriel Date: Wed, 26 Jun 1991 17:28:15 +0000 (+0000) Subject: Added verbose flag X-Git-Tag: release-5-5~1096 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8583ee73f3d2f454c61daa25739e5906f287f09a;p=ack.git Added verbose flag --- diff --git a/util/ego/em_ego/em_ego.c b/util/ego/em_ego/em_ego.c index cfdb4dd5b..aeaab07aa 100644 --- a/util/ego/em_ego/em_ego.c +++ b/util/ego/em_ego/em_ego.c @@ -80,6 +80,8 @@ static int nphase_args; static char *opt_dir; static char *prog_name; +static int v_flag; + static void cleanup() { @@ -251,6 +253,15 @@ run_phase(phase) fatal("Could not fork"); } else if (pid == 0) { + if (v_flag) { + register int i = 0; + + while (phargs[i]) { + fprint(STDERR, "%s ", phargs[i]); + i++; + } + fprint(STDERR, "\n"); + } (void) execv(phargs[0], phargs); fatal("Could not exec %s", phargs[0]); sys_stop(S_EXIT); @@ -296,6 +307,9 @@ main(argc, argv) /* no continue; IL also needs this */ } break; + case 'v': + v_flag = 1; + break; case 'O': if (argv[0][2] == '2' || argv[0][2] == '\0') continue; if (argv[0][2] == '3') {