ash,hush: comment and debug tweaks, no code changes
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Aug 2017 13:27:41 +0000 (15:27 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Aug 2017 13:27:41 +0000 (15:27 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
shell/hush.c

index 224d77633d5581a13fc85b58c023dd0d5bb149b3..58999fac587918440398515cc7a5e8c74703747a 100644 (file)
@@ -7704,8 +7704,9 @@ static int
 patmatch(char *pattern, const char *string)
 {
        char *p = preglob(pattern, 0);
-       //bb_error_msg("fnmatch(pattern:'%s',str:'%s')", p, string);
-       return pmatch(p, string);
+       int r = pmatch(p, string);
+       //bb_error_msg("!fnmatch(pattern:'%s',str:'%s',0):%d", p, string, r);
+       return r;
 }
 
 /*
index 517b8c109694ffebfc084d21d9eec6e48d4ed5c6..42f95ef6bb1de0f3db6ffb3ece7a7ed3adea75c9 100644 (file)
@@ -9948,7 +9948,7 @@ Test that VAR is a valid variable name?
                c = '?';
        }
 
-       /* Set OPTIND */
+       /* Set VAR and OPTIND */
        cbuf[0] = c;
        set_local_var_from_halves(var, cbuf);
        set_local_var_from_halves("OPTIND", utoa(optind));