hush: fix a='a\\'; echo "${a%\\\\}"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2018-03-02 20:48:36 +01:00
parent 55f8133a4f
commit d4802c6243
10 changed files with 39 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ char* FAST_FUNC scan_and_match(char *string, const char *pattern, unsigned flags
*loc = c;
} else {
r = fnmatch(pattern, loc, 0);
//bb_error_msg("fnmatch('%s','%s',0):%d", pattern, string, r);
//bb_error_msg("fnmatch('%s','%s',0):%d", pattern, loc, r);
}
if (r == 0) /* match found */
return loc;