Title: 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

 

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Jan 08 10:34:07 2003

Windows XP Professional Ver 5.1 Build 2600 

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
        

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

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;'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  NTFS   95385Mb  54% CP CS UN PA FC     
d:  cd           N/A    N/A                    
e:  cd           N/A    N/A                    
i:  net NTFS   130481Mb  32% CP CS UN PA FC     
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: 
        Build date: Mon Feb 25 11:14:34 EST 2002
        Shared id: cygwin1S3


Cygwin Package Information
Package             Version             
_update-info-dir    00006-1             
ash                 20020131-1          
bash                2.05a-3             
cygwin              1.3.10-1            
diff                1.0-1               
diffutils           2.8.1-1             
fileutils           4.1-1               
findutils           4.1.7-4             
gawk                3.0.4-1             
gdbm                1.8.0-4             
grep                2.5-1               
gzip                1.3.2-1             
libintl1            0.10.40-1           
libncurses5         5.2-1               
libncurses6         5.2-8               
libreadline4        4.1-2               
libreadline5        4.2a-1              
login               1.4-3               
ncurses             5.2-8               
pcre                3.7-1               
readline            4.2a-1              
sed                 3.02-1              
sh-utils            2.0-2               
tar                 1.13.19-1           
termcap             20020403-1          
terminfo            5.2-3               
texinfo             4.2-3               
textutils           2.0.21-1            
which               1.5-1               
zlib                1.1.4-1             

Use -h to see help about each section
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
        
        C:\PROGRA~1\ULTRAE~1

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

CYGWIN = `binmode'
Path = `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                    
c:  hd  NTFS   38115Mb  57% CP CS UN PA FC     
d:  cd           N/A    N/A                    
i:  net NTFS   115773Mb  83% CP CS UN PA FC     
j:  net NTFS   38146Mb  68% CP CS UN PA FC     

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: 
        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             
_update-info-dir    00087-1             
ash                 20020731-1          
base-files          1.0-1               
base-passwd         1.0-1               
bash                2.05b-7             
cygwin              1.3.15-2            
diff                1.0-1               
diffutils           2.8.1-1             
fileutils           4.1-1               
findutils           4.1.7-4             
gawk                3.1.1-5             
gdbm                1.8.0-4             
grep                2.5-1               
gzip                1.3.3-4             
libiconv2           1.8-2               
libintl1            0.10.40-1           
libintl2            0.11.5-1            
libncurses5         5.2-1               
libncurses6         5.2-8               
libreadline4        4.1-2               
libreadline5        4.3-2               
login               1.6-1               
ncurses             5.2-8               
pcre                3.7-1               
readline            4.3-2               
sed                 4.0.1-1             
sh-utils            2.0-2               
tar                 1.13.25-1           
termcap             20020930-1          
terminfo            5.2-3               
texinfo             4.2-4               
textutils           2.0.21-1            
which               1.5-1               
zlib                1.1.4-1             

Use -h to see help about each section
s//<font><\/font><\/BLOCKQUOTE>/

Attachment: Default_installing.htm
Description: Binary data

--
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/

Reply via email to