www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Jerome Fong <jfong AT successmetricsinc DOT com> |
Subject: | Re: how do you create an usable path variable with a space in it? |
Date: | Thu, 08 Mar 2007 14:42:13 -0800 |
Lines: | 25 |
Message-ID: | <esq3fi$grq$1@sea.gmane.org> |
References: | <espqv3$i5t$1 AT sea DOT gmane DOT org> <45F07C61 DOT 91A9682B AT dessent DOT net> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
In-Reply-To: | <45F07C61.91A9682B@dessent.net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
Thanks Brian, It works now. I thought I went through that, but apparently I didn't it wrong. thanks, Jerome Brian Dessent wrote: > Jerome Fong wrote: > >> export JAVA_HOME='/cygdrive/c/Program\ Files/Java/jdk1.5.0_10' > > This is wrong. Either backslash-escape the space or use quotes, but not > both. You are embedding an actual backslash in the value, which is not > what you want. The purpose of the backslash is not to exist in the > value of the variable, but to tell the shell not to treat the space as > separating two arguments. > > export FOO="some string" > export FOO=some\ string > > Brian > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |