This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

zsh's echo command buggy?


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*) :-)

--
.Marius


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]