<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Sed Script works in 3.02-1, fails in 4.0.1-1</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>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:</FONT></P>

<P><FONT SIZE=2>(This should be a single line of input, but I'm sure it will wrap when emailed):</FONT>
</P>

<P><FONT SIZE=2>sed -f modifyhtm.txt "\Web Configuration\Default_installing.htm" >results\Default_installing.htm</FONT>
</P>

<P><FONT SIZE=2>The error reported is:</FONT>
</P>

<P><FONT SIZE=2>'sed: file modifyhtm.txt line 1: No previous regular expression'</FONT>
</P>

<P><FONT SIZE=2>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.</FONT></P>

<P><FONT SIZE=2>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.</FONT></P>

<P><FONT SIZE=2>Thanks for your help,</FONT>
<BR><FONT SIZE=2>Dwight Neal</FONT>
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT> 

</BODY>
</HTML>