aboutsummaryrefslogtreecommitdiff
path: root/mpiosh/mpiosh.c
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-09-19 22:23:01 +0000
committercrunchy <crunchy>2002-09-19 22:23:01 +0000
commit21ec3fac700bf50b8c5cfafa6b6b5a86599fa9e2 (patch)
tree1d59b665505bbf41c43f46f74433a27b6aef9fe7 /mpiosh/mpiosh.c
parentcf208d020339d2c0e755d6de1a5b312328908a4e (diff)
downloadmpiosh-21ec3fac700bf50b8c5cfafa6b6b5a86599fa9e2.tar.gz
mpiosh-21ec3fac700bf50b8c5cfafa6b6b5a86599fa9e2.tar.bz2
mpiosh-21ec3fac700bf50b8c5cfafa6b6b5a86599fa9e2.zip
bug fixes in error handling and fix in regex_fix
Diffstat (limited to 'mpiosh/mpiosh.c')
-rw-r--r--mpiosh/mpiosh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c
index 83c45fb..fa2f75f 100644
--- a/mpiosh/mpiosh.c
+++ b/mpiosh/mpiosh.c
@@ -2,7 +2,7 @@
/*
*
- * $Id: mpiosh.c,v 1.15 2002/09/19 21:02:45 crunchy Exp $
+ * $Id: mpiosh.c,v 1.16 2002/09/19 22:23:01 crunchy Exp $
*
* Author: Andreas Büsching <crunchy@tzi.de>
*
@@ -259,7 +259,7 @@ mpiosh_command_regex_fix(char *argv[])
if (*help == '*' && ((help == *walk) || (*(help - 1) != '.'))) {
*new_pos++ = '.';
*new_pos = *help;
- } else if ((*help == '.') && (*help != '*')) {
+ } else if ((*help == '.') && (*(help + 1) != '*')) {
*new_pos++ = '\\';
*new_pos = *help;
} else if (*help == '?' && ((help == *walk) || (*(help - 1) != '\\'))) {
@@ -273,7 +273,6 @@ mpiosh_command_regex_fix(char *argv[])
*new_pos = '$';
free(*walk);
*walk = strdup(buffer);
- printf("new regex: '%s'\n", *walk);
walk++;
}