Always exec whatnow; don't link the code into comp, repl, forw, dist.
[mmh] / uip / whatnowproc.c
index 8d6830e..12cd13a 100644 (file)
 ** This routine is used by comp, repl, forw, and dist to exec
 ** the "whatnowproc".  It first sets up all the environment
 ** variables that the "whatnowproc" will need to check, and
-** then execs the command.  As an optimization, if the
-** "whatnowproc" is the nmh command "whatnow" (typical case),
-** it will call this routine directly without exec'ing it.
+** then execs the command.
 */
-
-/* from whatnowsbr.c */
-int WhatNow(int, char **);
-
-
 int
 what_now(char *ed, int nedit, int use, char *file, char *altmsg, int dist,
        struct msgs *mp, char *text, int inplace, char *cwd)
@@ -105,15 +98,6 @@ what_now(char *ed, int nedit, int use, char *file, char *altmsg, int dist,
        if (cwd)
                chdir(cwd);
 
-       /*
-       ** If the "whatnowproc" is the nmh command "whatnow",
-       ** we run it internally, rather than exec'ing it.
-       */
-       if (strcmp(vec[0], "whatnow") == 0) {
-               WhatNow(vecp, vec);
-               done(0);
-       }
-
        execvp(whatnowproc, vec);
        fprintf(stderr, "unable to exec ");
        perror(whatnowproc);