summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tr.c b/src/tr.c
index 28eeac35a..871542a27 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -525,8 +525,9 @@ unquote (char const *s, struct E_string *es)
}
break;
case '\0':
- /* POSIX seems to require that a trailing backslash must
- stand for itself. Weird. */
+ error (0, 0, _("warning: an unescaped backslash "
+ "at end of string is not portable"));
+ /* POSIX is not clear about this. */
es->escaped[j] = false;
i--;
c = '\\';