diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-02 20:48:36 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-02 20:48:36 +0100 |
commit | d4802c6243e64e28690577bc0bb4f030581c496b (patch) | |
tree | e1b3785c46bd4361419fb22718b319cf3a835658 /shell/match.c | |
parent | 55f8133a4fb207d6fecd02f43c36809d3c2f6672 (diff) | |
download | busybox-w32-d4802c6243e64e28690577bc0bb4f030581c496b.tar.gz busybox-w32-d4802c6243e64e28690577bc0bb4f030581c496b.tar.bz2 busybox-w32-d4802c6243e64e28690577bc0bb4f030581c496b.zip |
hush: fix a='a\\'; echo "${a%\\\\}"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | shell/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/match.c b/shell/match.c index 8f2a2fb38..ee8abb2db 100644 --- a/shell/match.c +++ b/shell/match.c | |||
@@ -75,7 +75,7 @@ char* FAST_FUNC scan_and_match(char *string, const char *pattern, unsigned flags | |||
75 | *loc = c; | 75 | *loc = c; |
76 | } else { | 76 | } else { |
77 | r = fnmatch(pattern, loc, 0); | 77 | r = fnmatch(pattern, loc, 0); |
78 | //bb_error_msg("fnmatch('%s','%s',0):%d", pattern, string, r); | 78 | //bb_error_msg("fnmatch('%s','%s',0):%d", pattern, loc, r); |
79 | } | 79 | } |
80 | if (r == 0) /* match found */ | 80 | if (r == 0) /* match found */ |
81 | return loc; | 81 | return loc; |