ash,hush: comment and debug tweaks, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-08-15 15:27:41 +02:00
parent 0485b677d2
commit 4476c70301
2 changed files with 4 additions and 3 deletions

View 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;
}
/*

View 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));