Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <5.2.0.9.2.20030108114420.0207e658@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Wed, 08 Jan 2003 11:49:53 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: Sed Script works in 3.02-1, fails in 4.0.1-1 In-Reply-To: <0DDE0E84C84D604783FF30707EB23E431C5015@hamlet.millbrook.co m> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Dwight, I can't tell what you intend to do with that SED script, but I agree with its complaint. If you want to use slashes within the pattern or replacement, you'll either have to escape them by preceding each with a backslash or use an alternative separator. I'm fond of semicolon in this kind of situation. Randall Schulz At 11:33 2003-01-08, Dwight Neal wrote: >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' > >The only difference I can find between the two machines (both WinXP, >similar hardware, etc) is that I have sed 4.0.1-1 on the newer one. When >I back off to the older sed.exe, the script runs just fine. I use about >30 other scripts on the two machines without errors. > >I am attaching cygcheck -s output from each machine (before I made any >changes to executables), and the modifyhtm.txt script. The one >caveat: the output from the ver 4 machine shows I had a CYGWIN >environment variable set to binmode, but this was for testing, and did not >effect the outcome. > >Thanks for your help, >Dwight Neal -- 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/