diff options
author | crunchy <crunchy> | 2002-09-19 21:02:45 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-09-19 21:02:45 +0000 |
commit | 65007d1a9936514535896afa23614304c09b77c2 (patch) | |
tree | f17f69e3d783001e50c5dbc4034c256af5bc9783 /mpiosh | |
parent | 7eb36f9021e86a75fd291b6aae424117a230134d (diff) | |
download | mpiosh-65007d1a9936514535896afa23614304c09b77c2.tar.gz mpiosh-65007d1a9936514535896afa23614304c09b77c2.tar.bz2 mpiosh-65007d1a9936514535896afa23614304c09b77c2.zip |
bug fix in mpiosh_command_regex_fix
Diffstat (limited to 'mpiosh')
-rw-r--r-- | mpiosh/mpiosh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c index aa4ff2d..83c45fb 100644 --- a/mpiosh/mpiosh.c +++ b/mpiosh/mpiosh.c @@ -2,7 +2,7 @@ /* * - * $Id: mpiosh.c,v 1.14 2002/09/18 22:18:29 germeier Exp $ + * $Id: mpiosh.c,v 1.15 2002/09/19 21:02:45 crunchy Exp $ * * Author: Andreas Büsching <crunchy@tzi.de> * @@ -256,13 +256,13 @@ mpiosh_command_regex_fix(char *argv[]) new_pos = buffer; *new_pos++ = '^'; while (*help != '\0') { - if (*help == '*' && ((help = *walk) || (*(help - 1) != '.'))) { + if (*help == '*' && ((help == *walk) || (*(help - 1) != '.'))) { *new_pos++ = '.'; *new_pos = *help; } else if ((*help == '.') && (*help != '*')) { *new_pos++ = '\\'; *new_pos = *help; - } else if (*help == '?' && ((help = *walk) || (*(help - 1) != '\\'))) { + } else if (*help == '?' && ((help == *walk) || (*(help - 1) != '\\'))) { *new_pos = '.'; } else { *new_pos = *help; |