Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh cygpath problem in cygwin
- X-seq: zsh-users 15126
- From: "d.henman" <dhenman@xxxxxxxxx>
- To: "=?ISO-8859-15?Q?Jan_L=FCbbe?=" <jlu@xxxxxx>
- Subject: Re: zsh cygpath problem in cygwin
- Date: Thu, 24 Jun 2010 22:54:33 +0900
- Cc: <zsh-users@xxxxxxx>
- In-reply-to: Your message of Thu, 24 Jun 2010 15:03:41 +0200 <4C2357AD.9060806@xxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4C2357AD.9060806@xxxxxx>
That is not a zsh problem or bug.
The variable is getting set properly, it just that you can't print it out, because the display routine see's the backslashes, \'s, and treats it as an escape character, which means the next character is probably being turned into a non-printable control character.
N.B. for others "cygpath" is a command to translate windows pathnames to posix style names or other direction.
Jan Lübbe <jlu@xxxxxx> wrote:
> I have a very strange problem in cygwin. If I use cygpath normally in
> the zsh everything is fine. But if I assign a variable like JAVA_HOME
> then strange thinks happen. "k\b" disappears and stuff like that. The
> strange thing is, that this does not happen in bash under cygwin. It
> must somehow be related to the zsh. Do you have any ideas?
>
> % JAVA_HOME="`cygpath -wl /cygdrive/d/Programme/Java/JavaEE61x32/jdk/bin`"
> % echo $JAVA_HOME
> D:\Programme\Java\JavaEE61x32\jdin
The below is not a full command? The argument is missing.
I suppose you meant --> cygpath -u "$JAVA_HOME"
> % cygpath -wl
> /cygdrive/d/Programme/Java/JavaEE61x32/jdk/bin/jboss-5.1.0.GA/bin
> D:\Programme\Java\JavaEE61x32\jdk\bin
Hope this helps. The echo command willn ot output the results correctly, but
% cygpath -u "$JAVA_HOME"
will work and even the redundant
% cygpath -wl "$JAVA_HOME"
which will give you the same value.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author