aboutsummaryrefslogtreecommitdiff
path: root/shell/match.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-03-02 20:48:36 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-03-02 20:48:36 +0100
commitd4802c6243e64e28690577bc0bb4f030581c496b (patch)
treee1b3785c46bd4361419fb22718b319cf3a835658 /shell/match.c
parent55f8133a4fb207d6fecd02f43c36809d3c2f6672 (diff)
downloadbusybox-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.c2
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;