zsh-users
 help / color / mirror / code / Atom feed
From: "d.henman" <dhenman@gmail.com>
To: =?ISO-8859-15?Q?Jan_L=FCbbe?= <jlu@ivu.de>
Cc: <zsh-users@zsh.org>
Subject: Re: zsh cygpath problem in cygwin
Date: Thu, 24 Jun 2010 22:54:33 +0900	[thread overview]
Message-ID: <20100624225433.2176@binki> (raw)
In-Reply-To: Your message of Thu, 24 Jun 2010 15:03:41 +0200 <4C2357AD.9060806@ivu.de>


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@ivu.de> 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.


      parent reply	other threads:[~2010-06-24 14:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24 13:03 Jan Lübbe
2010-06-24 13:16 ` Mikael Magnusson
2010-06-24 13:54 ` d.henman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100624225433.2176@binki \
    --to=dhenman@gmail.com \
    --cc=jlu@ivu.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).