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: <0DDE0E84C84D604783FF30707EB23E431C5015@hamlet.millbrook.com> From: Dwight Neal To: "'cygwin AT cygwin DOT com'" Subject: Sed Script works in 3.02-1, fails in 4.0.1-1 Date: Wed, 8 Jan 2003 13:33:50 -0600 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C2B74C.DEC9F490" Note-from-DJ: This may be spam ------_=_NextPart_000_01C2B74C.DEC9F490 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2B74C.DEC9F490" ------_=_NextPart_001_01C2B74C.DEC9F490 Content-Type: text/plain 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 ------_=_NextPart_001_01C2B74C.DEC9F490 Content-Type: text/html Content-Transfer-Encoding: quoted-printable 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'

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

  ------_=_NextPart_001_01C2B74C.DEC9F490-- ------_=_NextPart_000_01C2B74C.DEC9F490 Content-Type: text/plain; name="cygchecks3021.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygchecks3021.txt" Cygwin Win95/NT Configuration Diagnostics Current System Time: Wed Jan 08 10:34:07 2003 Windows XP Professional Ver 5.1 Build 2600=20 Path: C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\Microsoft SQL Server\80\Tools\BINN C:\PROGRA~1\ULTRAE~1 c:\cygwin\bin C:\Program Files\Common Files\Adaptec Shared\System C:\Millbrook\DistributedNotBuilt =09 SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS Path =3D = `C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program = Files\Microsoft SQL = Server\80\Tools\BINN;C:\PROGRA~1\ULTRAE~1;c:\cygwin\bin;C:\Program = Files\Common Files\Adaptec = Shared\System;C:\Millbrook\DistributedNotBuilt;' Use `-r' to scan registry a: fd N/A N/A =20 c: hd NTFS 95385Mb 54% CP CS UN PA FC =20 d: cd N/A N/A =20 e: cd N/A N/A =20 i: net NTFS 130481Mb 32% CP CS UN PA FC =20 j: net NTFS 57239Mb 51% CP CS UN PA FC New Volume C:\cygwin / system textmode C:\cygwin/bin /usr/bin system textmode C:\cygwin/lib /usr/lib system textmode . /cygdrive user textmode,noumount Found: c:\cygwin\bin\bash.exe Found: c:\cygwin\bin\cat.exe Not Found: cpp (good!) Found: c:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Not Found: ld Found: c:\cygwin\bin\ls.exe Not Found: make Found: c:\cygwin\bin\sh.exe 45k 2001/04/25 c:\cygwin\bin\cygform5.dll 35k 2002/01/09 c:\cygwin\bin\cygform6.dll 19k 2002/02/20 c:\cygwin\bin\cyggdbm.dll 17k 2001/06/28 c:\cygwin\bin\cyghistory4.dll 20k 2002/01/13 c:\cygwin\bin\cyghistory5.dll 22k 2001/12/13 c:\cygwin\bin\cygintl-1.dll 26k 2001/04/25 c:\cygwin\bin\cygmenu5.dll 20k 2002/01/09 c:\cygwin\bin\cygmenu6.dll 156k 2001/04/25 c:\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 c:\cygwin\bin\cygncurses++6.dll 226k 2001/04/25 c:\cygwin\bin\cygncurses5.dll 202k 2002/01/09 c:\cygwin\bin\cygncurses6.dll 15k 2001/04/25 c:\cygwin\bin\cygpanel5.dll 12k 2002/01/09 c:\cygwin\bin\cygpanel6.dll 40k 2001/11/21 c:\cygwin\bin\cygpcre.dll 39k 2001/11/21 c:\cygwin\bin\cygpcreposix.dll 108k 2001/06/28 c:\cygwin\bin\cygreadline4.dll 121k 2002/01/13 c:\cygwin\bin\cygreadline5.dll 50k 2002/03/12 c:\cygwin\bin\cygz.dll 751k 2002/02/25 c:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.3.10 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 51 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix:=20 Build date: Mon Feb 25 11:14:34 EST 2002 Shared id: cygwin1S3 Cygwin Package Information Package Version =20 _update-info-dir 00006-1 =20 ash 20020131-1 =20 bash 2.05a-3 =20 cygwin 1.3.10-1 =20 diff 1.0-1 =20 diffutils 2.8.1-1 =20 fileutils 4.1-1 =20 findutils 4.1.7-4 =20 gawk 3.0.4-1 =20 gdbm 1.8.0-4 =20 grep 2.5-1 =20 gzip 1.3.2-1 =20 libintl1 0.10.40-1 =20 libncurses5 5.2-1 =20 libncurses6 5.2-8 =20 libreadline4 4.1-2 =20 libreadline5 4.2a-1 =20 login 1.4-3 =20 ncurses 5.2-8 =20 pcre 3.7-1 =20 readline 4.2a-1 =20 sed 3.02-1 =20 sh-utils 2.0-2 =20 tar 1.13.19-1 =20 termcap 20020403-1 =20 terminfo 5.2-3 =20 texinfo 4.2-3 =20 textutils 2.0.21-1 =20 which 1.5-1 =20 zlib 1.1.4-1 =20 Use -h to see help about each section ------_=_NextPart_000_01C2B74C.DEC9F490 Content-Type: text/plain; name="cygchecks4011.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygchecks4011.txt" Cygwin Win95/NT Configuration Diagnostics Current System Time: Wed Jan 08 10:33:26 2003 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\Microsoft SQL Server\80\Tools\BINN c:\cygwin\bin =09 C:\PROGRA~1\ULTRAE~1 SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS CYGWIN =3D `binmode' Path =3D = `C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program = Files\Microsoft SQL = Server\80\Tools\BINN;c:\cygwin\bin;;C:\PROGRA~1\ULTRAE~1' Use `-r' to scan registry a: fd N/A N/A =20 c: hd NTFS 38115Mb 57% CP CS UN PA FC =20 d: cd N/A N/A =20 i: net NTFS 115773Mb 83% CP CS UN PA FC =20 j: net NTFS 38146Mb 68% CP CS UN PA FC =20 C:\cygwin / system textmode C:\cygwin/bin /usr/bin system textmode C:\cygwin/lib /usr/lib system textmode . /cygdrive user textmode,cygdrive Found: c:\cygwin\bin\bash.exe Found: c:\cygwin\bin\cat.exe Not Found: cpp (good!) Found: c:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Not Found: ld Found: c:\cygwin\bin\ls.exe Not Found: make Found: c:\cygwin\bin\sh.exe 45k 2001/04/25 c:\cygwin\bin\cygform5.dll 35k 2002/01/09 c:\cygwin\bin\cygform6.dll 19k 2002/02/20 c:\cygwin\bin\cyggdbm.dll 17k 2001/06/28 c:\cygwin\bin\cyghistory4.dll 20k 2002/10/10 c:\cygwin\bin\cyghistory5.dll 929k 2002/06/24 c:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 c:\cygwin\bin\cygintl-1.dll 28k 2002/09/20 c:\cygwin\bin\cygintl-2.dll 26k 2001/04/25 c:\cygwin\bin\cygmenu5.dll 20k 2002/01/09 c:\cygwin\bin\cygmenu6.dll 156k 2001/04/25 c:\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 c:\cygwin\bin\cygncurses++6.dll 226k 2001/04/25 c:\cygwin\bin\cygncurses5.dll 202k 2002/01/09 c:\cygwin\bin\cygncurses6.dll 15k 2001/04/25 c:\cygwin\bin\cygpanel5.dll 12k 2002/01/09 c:\cygwin\bin\cygpanel6.dll 40k 2001/11/21 c:\cygwin\bin\cygpcre.dll 39k 2001/11/21 c:\cygwin\bin\cygpcreposix.dll 108k 2001/06/28 c:\cygwin\bin\cygreadline4.dll 127k 2002/10/10 c:\cygwin\bin\cygreadline5.dll 50k 2002/03/12 c:\cygwin\bin\cygz.dll 906k 2002/11/07 c:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.3.15 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 63 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix:=20 Build date: Thu Nov 7 13:57:47 EST 2002 CVS tag: cygwin-1-3-15-1 Shared id: cygwin1S3 Cygwin Package Information Package Version =20 _update-info-dir 00087-1 =20 ash 20020731-1 =20 base-files 1.0-1 =20 base-passwd 1.0-1 =20 bash 2.05b-7 =20 cygwin 1.3.15-2 =20 diff 1.0-1 =20 diffutils 2.8.1-1 =20 fileutils 4.1-1 =20 findutils 4.1.7-4 =20 gawk 3.1.1-5 =20 gdbm 1.8.0-4 =20 grep 2.5-1 =20 gzip 1.3.3-4 =20 libiconv2 1.8-2 =20 libintl1 0.10.40-1 =20 libintl2 0.11.5-1 =20 libncurses5 5.2-1 =20 libncurses6 5.2-8 =20 libreadline4 4.1-2 =20 libreadline5 4.3-2 =20 login 1.6-1 =20 ncurses 5.2-8 =20 pcre 3.7-1 =20 readline 4.3-2 =20 sed 4.0.1-1 =20 sh-utils 2.0-2 =20 tar 1.13.25-1 =20 termcap 20020930-1 =20 terminfo 5.2-3 =20 texinfo 4.2-4 =20 textutils 2.0.21-1 =20 which 1.5-1 =20 zlib 1.1.4-1 =20 Use -h to see help about each section ------_=_NextPart_000_01C2B74C.DEC9F490 Content-Type: text/plain; name="modifyhtm.txt" Content-Disposition: attachment; filename="modifyhtm.txt" s//<\/font><\/BLOCKQUOTE>/ ------_=_NextPart_000_01C2B74C.DEC9F490 Content-Type: application/octet-stream; name="Default_installing.htm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Default_installing.htm" One-Click Install - MPM03Client Setup
 


 

=20
=20 =20

Total size: 54 MB

2 hours 54 minutes 37 seconds on a 56K modem
20 minutes 0 seconds on DSL / cable modem

=20
=20
When installation completes, click here to return.
------_=_NextPart_000_01C2B74C.DEC9F490 Content-Type: text/plain; charset=us-ascii -- 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/ ------_=_NextPart_000_01C2B74C.DEC9F490--