diff options
author | crunchy <crunchy> | 2002-09-14 21:57:02 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-09-14 21:57:02 +0000 |
commit | 49dbdf4e2074c35ff16534db3d21eec3841c491f (patch) | |
tree | bd9006a390870e1b9ad8053133402c326ecaceb2 | |
parent | cd1e9f58bdbbf0375de6fd75f5c245fcd857c0e1 (diff) | |
download | mpiosh-49dbdf4e2074c35ff16534db3d21eec3841c491f.tar.gz mpiosh-49dbdf4e2074c35ff16534db3d21eec3841c491f.tar.bz2 mpiosh-49dbdf4e2074c35ff16534db3d21eec3841c491f.zip |
fixed reading commands from pipe
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | mpiosh/mpiosh.c | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -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; |