aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--mpiosh/mpiosh.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d08df9f..326b2a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-09-14 Andreas Buesching <crunchy@tzi.de>
+ * mpiosh/mpiosh.c: does not hang anymore after reading commands
+ from a pipe
+
* mpiosh/callback.c (mpiosh_callback_mget, mpiosh_callback_mput)
(mpiosh_callback_mdel): calling new function mpiosh_command_regex_fix
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;