delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/20/22:47:58

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <003b01c1a22e$48044800$a100a8c0@mchasecompaq>
From: "Michael A Chase" <mchase AT ix DOT netcom DOT com>
To: "=?iso-2022-jp?B?aGlyYW5hZ2EgGyRCSj8xShsoQiAbJEJMMxsoQg==?=" <hiranaga AT siden DOT cow DOT melco DOT co DOT jp>
Cc: "cygwin" <cygwin AT cygwin DOT com>
References: <F62F23EA996ED4119B8100600841EF0B019BBA96 AT exgft24 DOT cow DOT melco DOT co DOT jp>
Subject: Re: Not compatible between cygwin-B20 and cygwin-2.125.2.10
Date: Sun, 20 Jan 2002 19:43:39 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I am not the sole source of wisdom in the list.  Please address your
questions there.  I have forwarded my response to the list.

When I view this message (Content-Type: text/plain; charset="iso-2022-jp")
all the backslashes I paste from the bash console window show up as yen
symbols.

On the other hand, the command worked as I expected.  The following three
lines, starting with "$", are cut and pasted from my console window.  The
first line under the command is what I typed in and the second line is the
output (STDIN -> sed -> STDOUT).  Maybe you have varying characters for "'"
or "-" in the sed expression.

$ sed -e 's-\\-/-g'
\\\\\\\
///////

My environment:
   MS Windows XP
   ash                 20011018-1
   bash                2.05a-2
   cygwin              1.3.7-1
   sed                 3.02-1
   I run bash in a console window using the icon created by setup.exe.  You
don't seem to have rxvt loaded, so you are probably doing the same.

=== Late news ===
I get the same error you do when I try to run sed at the MSDOS prompt..  Use
the bash prompt instead when you want to use Cygwin utilities.  It's a much
more consistent and reliable environment.

--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "hiranaga $BJ?1J(B $BL3(B" <hiranaga AT siden DOT cow DOT melco DOT co DOT jp>
To: "Michael A Chase" <mchase AT ix DOT netcom DOT com>
Sent: Sunday, January 20, 2002 16:37
Subject: RE: Not compatible between cygwin-B20 and cygwin-2.125.2.10


> Error command :
>
>     sed -e 's-\\-/-g'             <I want to change \ to />
>     sed: -e expression #1, char 7: Unterminated `s' command  <- error
message
>
> cygwin1.dll version :
>
> Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2
>   720k 2001/12/08 C:\cygwin\bin\cygwin1.dll
>     Cygwin DLL version info:
>         DLL version: 1.3.6
> . . .
>         CVS tag: cygwin-1-3-6-6
> . . .
> Cygwin Package Information
> Package             Version
> ash                 20011018-1
> bash                2.05a-2
> cygwin              1.3.6-6
> . . .
> sed                 3.02-1
>
> -----Original Message-----
> From: Michael A Chase [mailto:mchase AT ix DOT netcom DOT com]
> Sent: Saturday, January 19, 2002 3:35 AM
> To: hiranaga $BJ?1J(B $BL3(B; cygwin AT cygwin DOT com
> Subject: Re: Not compatible between cygwin-B20 and cygwin-2.125.2.10
>
> The version number you've given (2.125.2.10) is the current version of
> setup.exe.  To find the cygwin version, run 'cygcheck -s' and look at the
> version information for cygwin1.dll.
>
> There may be a problem with character set translation.  In some views, I
see
> two backslashes as the first part of the sed expression and in others I
see
> two yen symbols.  The sed command hasn't changed in a very long time, but
> your keyboard and display drivers may be putting up characters other than
> what you think.
> ----- Original Message -----
> From: "hiranaga $BJ?1J(B $BL3(B" <hiranaga AT siden DOT cow DOT melco DOT co DOT jp>
> To: <cygwin AT cygwin DOT com>
> Sent: Thursday, January 17, 2002 17:08
> Subject: sed : Not compatible between cygwin-B20 and cygwin-2.125.2.10
>
> > Following command dosn't work on cygwin-2.125.2.10
> >    sed -e 's-\\-/-g'             <I want to change \ to />
> >    sed: -e expression #1, char 7: Unterminated `s' command  <- error
> message
> > But same command work on cygwin-B20.




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

- Raw text -


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