diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | mpiosh/mpiosh.c | 5 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2002-09-15 Andreas Buesching <crunchy@tzi.de> + + * mpiosh/mpiosh.c: add a debug message, displaying the executed + command in script mode + 2002-09-15 Markus Germeier <mager@tzi.de> * libmpio/directory.c: add debug informations, diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c index c1cbd03..ef7fb8e 100644 --- a/mpiosh/mpiosh.c +++ b/mpiosh/mpiosh.c @@ -2,7 +2,7 @@ /* * - * $Id: mpiosh.c,v 1.8 2002/09/14 21:57:02 crunchy Exp $ + * $Id: mpiosh.c,v 1.9 2002/09/14 23:22:26 crunchy Exp $ * * Author: Andreas Büsching <crunchy@tzi.de> * @@ -446,8 +446,6 @@ main(int argc, char *argv[]) { } while ((line = readline(mpiosh.prompt))) { - printf("running... '%s'\n", line); - if ((*line == '\0') || mpiosh_cancel) { rl_clear_pending_input (); mpiosh_cancel = 0; @@ -469,6 +467,7 @@ main(int argc, char *argv[]) { char ** help, **args = mpiosh_command_get_args(*walk); help = args; + if (!interactive) debug("running... '%s'\n", *walk); cmd->func(args); mpiosh_command_free_args(args); } else |