Bug 100

Summary: sh doesn't handle escapes properly
Product: Base System Reporter: Paul Richards <paul>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Paul Richards 1995-01-08 15:20:01 UTC
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.
Comment 1 Paul Richards freebsd_committer freebsd_triage 1995-01-09 20:32:29 UTC
State Changed
From-To: open->closed

A fix has been applied.