delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <003501c2b769$4fd98620$5c16989e@oemcomputer> |
Reply-To: | "Peter S Tillier" <peter_tillier AT yahoo DOT co DOT uk> |
From: | "Peter S Tillier" <peter_tillier AT yahoo DOT co DOT uk> |
To: | "Dwight Neal" <DwightN AT millbrook DOT com>, <cygwin AT cygwin DOT com> |
References: | <0DDE0E84C84D604783FF30707EB23E431C5015 AT hamlet DOT millbrook DOT com> |
Subject: | Re: Sed Script works in 3.02-1, fails in 4.0.1-1 |
Date: | Wed, 8 Jan 2003 22:57:21 -0000 |
Organization: | Private |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
----- Original Message ----- From: "Dwight Neal" <DwightN AT millbrook DOT com> To: <cygwin AT cygwin DOT com> Sent: Wednesday, January 08, 2003 7:33 PM Subject: Sed Script works in 3.02-1, fails in 4.0.1-1 > I am migrating from a machine that uses a cygwin image loaded in May 2002 to > one that uses a November 2002 download, and have a sed script that fails in > the newer version: > > (This should be a single line of input, but I'm sure it will wrap when > emailed): > > sed -f modifyhtm.txt "\Web Configuration\Default_installing.htm" > >results\Default_installing.htm > > The error reported is: > > 'sed: file modifyhtm.txt line 1: No previous regular expression' > As modifyhtm.txt contains: s//<font><\/font><\/BLOCKQUOTE>/ the reason for the error message is obvious. The // refers to a previously-compiled RE and there isn't one. This is an error in your script, not sed 4.0.1-1 and should also give the same error message with sed 3.02-1. As Randall says using / separators in s commands when slashes are part of the RE is tricky. You can use pretty much any separator other than a backslash. HTH Peter S Tillier __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |