aboutsummaryrefslogtreecommitdiff
path: root/mpiosh
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-09-14 23:22:26 +0000
committercrunchy <crunchy>2002-09-14 23:22:26 +0000
commitb3ad9f71147fa75642afc0587584fda6822837db (patch)
treea91ebbe56fb6af1854dbcad81e15616431bfc383 /mpiosh
parent523708cd2681ff9da96e28cb2babbebc9fb3ebd4 (diff)
downloadmpiosh-b3ad9f71147fa75642afc0587584fda6822837db.tar.gz
mpiosh-b3ad9f71147fa75642afc0587584fda6822837db.tar.bz2
mpiosh-b3ad9f71147fa75642afc0587584fda6822837db.zip
debug message in script mode
Diffstat (limited to 'mpiosh')
-rw-r--r--mpiosh/mpiosh.c5
1 files changed, 2 insertions, 3 deletions
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