Sed Script works in 3.02-1, fails in 4.0.1-1
Dwight Neal
DwightN@millbrook.com
Mon Jan 13 03:04:00 GMT 2003
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030113/3d81c82a/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygchecks3021.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030113/3d81c82a/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygchecks4011.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030113/3d81c82a/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: modifyhtm.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030113/3d81c82a/attachment-0002.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Default_installing.htm
Type: application/octet-stream
Size: 4822 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030113/3d81c82a/attachment.obj>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list