aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tr.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r--coreutils/tr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c
index 8d779d8ea..f51c4caea 100644
--- a/coreutils/tr.c
+++ b/coreutils/tr.c
@@ -117,6 +117,13 @@ static unsigned expand(char *arg, char **buffer_p)
117 arg++; 117 arg++;
118 z = arg; 118 z = arg;
119 ac = bb_process_escape_sequence(&z); 119 ac = bb_process_escape_sequence(&z);
120#if ENABLE_PLATFORM_MINGW32
121 if (ac == '\\' && *z == '-') {
122 /* An escaped dash isn't a range, don't fall through */
123 buffer[pos++] = *z;
124 continue;
125 }
126#endif
120 arg = (char *)z; 127 arg = (char *)z;
121 arg--; 128 arg--;
122 *arg = ac; 129 *arg = ac;