From f5c4a278464a11a7e6cadbb5f4e2722c6429d19a Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Mon, 9 Jan 1995 20:00:54 +0000 Subject: [PATCH] Fix a bug with handling backslash escapes inside some quotes. Should solve our problems with edit-pr. --- bin/sh/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sh/parser.c b/bin/sh/parser.c index f3b9bcfe646..d890595a5b2 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: parser.c,v 1.3 1994/09/24 02:58:08 davidg Exp $ */ #ifndef lint @@ -1181,7 +1181,7 @@ parsebackq: { while ((c = pgetc ()) != '`') { if (c == '\\') { c = pgetc (); - if (c != '\\' && c != '`' && c != '$' + if (c != '`' && c != '$' && (!dblquote || c != '"')) STPUTC('\\', out); }