aboutsummaryrefslogtreecommitdiff
path: root/mpiosh
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-09-14 21:57:02 +0000
committercrunchy <crunchy>2002-09-14 21:57:02 +0000
commit49dbdf4e2074c35ff16534db3d21eec3841c491f (patch)
treebd9006a390870e1b9ad8053133402c326ecaceb2 /mpiosh
parentcd1e9f58bdbbf0375de6fd75f5c245fcd857c0e1 (diff)
downloadmpiosh-49dbdf4e2074c35ff16534db3d21eec3841c491f.tar.gz
mpiosh-49dbdf4e2074c35ff16534db3d21eec3841c491f.tar.bz2
mpiosh-49dbdf4e2074c35ff16534db3d21eec3841c491f.zip
fixed reading commands from pipe
Diffstat (limited to 'mpiosh')
-rw-r--r--mpiosh/mpiosh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c
index 75a01b4..c1cbd03 100644
--- a/mpiosh/mpiosh.c
+++ b/mpiosh/mpiosh.c
@@ -2,7 +2,7 @@
/*
*
- * $Id: mpiosh.c,v 1.7 2002/09/14 11:19:30 crunchy Exp $
+ * $Id: mpiosh.c,v 1.8 2002/09/14 21:57:02 crunchy Exp $
*
* Author: Andreas Büsching <crunchy@tzi.de>
*
@@ -438,6 +438,7 @@ main(int argc, char *argv[]) {
interactive = 0;
mpiosh.prompt = NULL;
rl_redisplay_function = mpiosh_noredisplay;
+ rl_event_hook = NULL;
}
if (!mpiosh.dev && interactive) {
@@ -445,6 +446,8 @@ 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;