delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/10/18:35:08

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 10 Apr 2003 18:34:44 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Marius Storm-Olsen <marius AT trolltech DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: zsh's echo command buggy?
In-Reply-To: <001101c2ffad$809b1f30$a225e850@dingo>
Message-ID: <Pine.GSO.4.44.0304101831280.8014-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 11 Apr 2003, Marius Storm-Olsen wrote:

> Hi there all,
>
> I'm trying to run sed on some of environment variables to convert them to
> the cygwin style. (Yes, I know about cygpath, but I've never used sed
> before, and wanted to fiddle with it) In the process it seems I've stumbled
> over a problem seemingly related to zsh.
>
> If you set the following Windows environment variables:
>    SOMEPATH_A=C:\Tools;C:\Cygwin\bin;c:\cygwin;
>    SOMEPATH_B=C:\Tools;C:\Cygwin\bin;
>
> I get this:
>    C:\Documents and Settings\marius>zsh
>    $P$Gecho $SOMEPATH_A
>    $P$Gecho $SOMEPATH_B
>    C:\Tools;C:\Cygwiin;
>    $P$G
>
> 1) zsh is used as the default install (no .zshrc or .zprofile)
> 2) `echo $SOMEPATH_A` doesn't return anything
> 3) `echo $SOMEPATH_B` is flawed (Notice the double i's?)
>
> Doing the same in cygwin bash returns the expected result..
>
>
> Trying with the variables:
>    SOMEPATH_A=C:\Tools;C:\Sygwin\bin;c:\sygwin;
>    SOMEPATH_B=C:\Tools;C:\Sygwin\bin;
>
> Results in:
>    C:\Documents and Settings\marius>zsh
>    $P$Gecho $SOMEPATH_A
>    C:\Tools;C:\Sygwiin;c:\sygwin;
>    $P$Gecho $SOMEPATH_B
>    C:\Tools;C:\Sygwiin;
>    $P$G
>
> Slightly better, but still flawed :-/
> Sorry, but I havn't had the time to look into the zsh sourcecode myself
> yet.
> Any ideas? (*points at printf*) :-)

Yes, looks like zsh has a printf(string) somewhere instead of
printf("%s",string)...  Naughty, naughty...
	Igor
P.S. sed won't look up mounts for you...
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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