delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/08/15:50:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <DwightN AT millbrook DOT com>
To: "'cygwin AT cygwin DOT com'" <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
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"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=3D2>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=3D2>(This should be a single line of input, but I'm sure =
it will wrap when emailed):</FONT>
</P>

<P><FONT SIZE=3D2>sed -f modifyhtm.txt &quot;\Web =
Configuration\Default_installing.htm&quot; =
&gt;results\Default_installing.htm</FONT>
</P>

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

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

<P><FONT SIZE=3D2>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.&nbsp; When I back off to the older sed.exe, the =
script runs just fine.&nbsp; I use about 30 other scripts on the two =
machines without errors.</FONT></P>

<P><FONT SIZE=3D2>I am attaching cygcheck -s output from each machine =
(before I made any changes to executables), and the modifyhtm.txt =
script.&nbsp; The one caveat:&nbsp; 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=3D2>Thanks for your help,</FONT>
<BR><FONT SIZE=3D2>Dwight Neal</FONT>
</P>

<P><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"></FONT><FONT =
FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"></FONT><FONT FACE=3D"Arial" =
SIZE=3D2 COLOR=3D"#000000"></FONT><FONT FACE=3D"Arial" SIZE=3D2 =
COLOR=3D"#000000"></FONT>&nbsp;

</BODY>
</HTML>
------_=_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><\/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"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>One-Click Install - MPM03Client  Setup</TITLE>
<META http-equiv=3DContent-Language content=3Den-us>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">

<script language=3Djavascript>
// Determine the browser version.

ns =3D -1;
ie =3D -1;
var reqstring;

if (navigator.appName.indexOf("Microsoft Internet Explorer") !=3D -1)=20
{
	if (parseFloat(navigator.appVersion) >=3D 4.0)=20
	{=20
		ie =3D 1;
	}=20
	else if (navigator.appVersion.indexOf("MSIE 3.02") !=3D -1)=20
	{=20
		ie =3D 1;
	}=20
	else=20
	{=20
		reqString =3D "Microsoft Internet Explorer 3.02 or higher";=20
	}
}=20
else if (navigator.appName.indexOf("Netscape") !=3D -1)
{
	if (parseFloat(navigator.appVersion) >=3D 4.04)=20
	{=20
		ns =3D 1;
	}=20
	else=20
	{=20
		reqString =3D "Netscape Communicator 4.04 or higher";=20
	}
}=20
else=20
{=20
	reqString =3D "Netscape Communicator 4.04 or Internet Explorer 3.02 or =
higher";=20
}

function WriteInstallingMsg()
{
	if ((ns =3D=3D 1) || (ie =3D=3D 1))
	{
		document.write("Installing MPM03Client  Setup...");
	}
}

function WriteBrowserTooOldMsg()
{
	if ((ns =3D=3D -1) && (ie =3D=3D -1))
	{
		document.write("Cannot install MPM03Client. " + reqString + " is =
required.");
	}
}
</script>
</HEAD>
<BODY bgColor=3D#ffffff leftMargin=3D0 topMargin=3D0 link=3D"#183C5F" =
vlink=3D"#183C5F" alink=3D"#183C5F">

<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0 =
bordercolor=3D"red">
    <TBODY>
        <TR>
            <TD width=3D670><map name=3D"FPMap0"><area =
href=3D"http://support.installshield.com/help/oneclick/defaulthelp.htm" =
target=3D"_blank" coords=3D"476, 49, 526, 67" shape=3D"rect"></map><IMG =
height=3D68 src=3D"oci_header.jpg" width=3D670 border=3D0 =
usemap=3D"#FPMap0"></TD>
            <TD background=3Dheader_fill.jpg width=3D"100%">&nbsp;</TD>
        </TR>
    </TBODY>
</TABLE>

<BR><BR>

<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0 =
bordercolor=3D"red" height=3D"42">
    <TBODY>
        <TR>
            <td height=3D"42"><img src=3D"spacer.gif" width=3D"80" =
height=3D"1" border=3D"0"></td>
            <TD vAlign=3Dtop align=3Dright width=3D50 height=3D"42">
                <IMG height=3D42 src=3D"bar-left.jpg" width=3D47 =
border=3D0>
            </TD>
            <TD width=3D"100%" style=3D"BACKGROUND-REPEAT: repeat-x" =
vAlign=3Dtop align=3Dleft background=3Dbar-fill2.jpg height=3D"42">
                &nbsp;
            </TD>
        </TR>
    </TBODY>
</TABLE>

<BR>

<BLOCKQUOTE>
<BLOCKQUOTE>

<script>
WriteBrowserTooOldMsg(); // On Netscape 3.03, document.write doesn't =
work inside tables.
</script>

<TABLE style=3D"FONT-SIZE: 8pt; BACKGROUND-REPEAT: no-repeat; =
FONT-FAMILY: Verdana" cellSpacing=3D10 cellPadding=3D10 width=3D515 =
bgColor=3D#eef1f4 border=3D0>
    <TBODY>
        <TR>
            <TD width=3D473>
                <div align=3D"left">
                <TABLE cellPadding=3D2 width=3D"100%" border=3D0 =
height=3D"50">
                    <TBODY>
                        <TR>
                            <TD width=3D"65%" valign=3D"top" =
align=3D"left">
                                <FONT face=3D"Verdana" color=3D#183c5f =
size=3D4>
<script>WriteInstallingMsg();</script>
<noscript>
<b>Please enable both Javascript and Java in your browser through the =
Options or Preferences menu in your browser and reload this page.</b> =
If your browser does not support Java or Javascript, please install one =
of these browsers and return to this page.
<ul>
<li>
<a href=3D"http://www.microsoft.com/ie/">Microsoft Internet =
Explorer</a>
<li>
<a =
href=3D"http://home.netscape.com/comprod/products/communicator/index.htm=
l">Netscape Communicator</a></li>
</ul>
</noscript>
								</FONT>
                            </TD>
                        </TR>
                    </TBODY>
                </TABLE>
                </div>
               =20
                <HR>
               =20
                <font face=3D"verdana" size=3D"1">
               =20
                <P style=3D"MARGIN: -0.25em -0.25em -0.25em 0.25em">
                Total size: <B>54 MB</B>
                </P>
                <P style=3D"MARGIN-BOTTOM: 0.25em; MARGIN-LEFT: =
0.25em">
                2 hours 54 minutes 37 seconds on a 56K modem
                <BR>
                20 minutes 0 seconds on DSL / cable modem
                </P>
               =20
                <HR>
               =20
                </font>
            </TD>
        </TR>
    </TBODY>
</TABLE>

<script>

if (ie =3D=3D 1)
{
	document.write("<object =
CLASSID=3D'clsid:7A295B97-4A39-430C-BB46-BE09BDEA994A' =
CODEBASE=3D'Default.cab#Version=3D1,00,0000' BORDER=3D0 VSPACE=3D0 =
HSPACE=3D0 ALIGN=3DTOP HEIGHT=3D0% WIDTH=3D0%></object>");
}
else if (ns =3D=3D 1)
{
    document.writeln("<applet archive=3D\"Default.jar\" =
code=3D\"ISSetupApplet.class\" height=3D\"0\" =
width=3D\"0\"></applet>");
}

</script>

<font face=3D"verdana" size=3D"2">When installation completes, click <a =
href=3D..\..\Update.asp>here </a>to return.</font></BLOCKQUOTE>
</BLOCKQUOTE>

</BODY>
</HTML>


------_=_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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019