From b1d579c21d332b02181e80a046b379350ce39771 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 23 Dec 1999 08:02:53 +0000 Subject: Handle literal backslashes properly. svn path=/trunk/; revision=2677 --- env.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/env.c b/env.c index f4140881..cda43ea8 100644 --- a/env.c +++ b/env.c @@ -221,6 +221,11 @@ char *visbuf(const char *buf) *tp++ = '\\'; *tp++ = '"'; buf++; } + else if (*buf == '\\') + { + *tp++ = '\\'; *tp++ = '\\'; + buf++; + } else if (isprint(*buf) || *buf == ' ') *tp++ = *buf++; else if (*buf == '\n') -- cgit v1.2.3