From paul@isl.cf.ac.uk  Sun Jan  8 15:19:12 1995
Received: from isl.cf.ac.uk (isl-gate.elsy.cf.ac.uk [131.251.22.1]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id PAA13007 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 8 Jan 1995 15:19:11 -0800
Received: (from paul@localhost) by isl.cf.ac.uk (8.6.9/8.6.9) id XAA25912; Sun, 8 Jan 1995 23:19:30 GMT
Message-Id: <199501082319.XAA25912@isl.cf.ac.uk>
Date: Sun, 8 Jan 1995 23:19:30 GMT
From: Paul Richards <paul@isl.cf.ac.uk>
Reply-To: paul@isl.cf.ac.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: sh doesn't handle escapes properly
X-Send-Pr-Version: 3.2

>Number:         100
>Category:       bin
>Synopsis:       sh doesn't handle escapes properly
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan  8 15:20:01 1995
>Closed-Date:    Mon Jan 9 12:32:29 PST 1995
>Last-Modified:  Tue Nov 27 18:41:22 PST 2001
>Originator:     Paul Richards
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Paul Richards, FreeBSD core team member. 
  Phone: +44 1222 874000 x5958 (work), +44 1222 457651 (home)
  Dept. Mechanical Engineering, University of Wales, College Cardiff.
  Internet: paul@FreeBSD.org,  JANET(UK): RICHARDSDP@CARDIFF.AC.UK
>Environment:


>Description:

sh doesn't deal correctly with escaped backslashes. The following snippet
should put an escape before each end of line but the sh is botching it
before it gets to sed.

>How-To-Repeat:

# `sed -e 's/$/ \\\\/g' $change_msg`
sed: 1: "s/$/ \/g": unterminated substitute in regular expression

It should pass s/$/ \\/g to sed but it doesn't.

>Fix:
	
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: paul 
State-Changed-When: Mon Jan 9 12:32:29 PST 1995 
State-Changed-Why:  
A fix has been applied. 
>Unformatted:



