From 21ec3fac700bf50b8c5cfafa6b6b5a86599fa9e2 Mon Sep 17 00:00:00 2001 From: crunchy Date: Thu, 19 Sep 2002 22:23:01 +0000 Subject: bug fixes in error handling and fix in regex_fix --- mpiosh/mpiosh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mpiosh/mpiosh.c') 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 * @@ -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++; } -- cgit v1.2.3