delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/11/23:09:51

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=GwjoXRUg1bhZfwyz
2Tfj9gXmEa2SGee0tg4BJRH7ni/De/QQdYvaf5pThR95M2bO8lo/8VEo8POLggtG
+KVSvq/JJHmWRtRUDikGegbG0rLGL4vHxi02Q+OHc/DXw1AftYTRwRMh9EWl5uT/
D9ZaX/69HfMLESGGjWza3R3yI70=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=B7gcMGkqcy3hLNW3HcSydT
Sm4bo=; b=b3KM1NPQQsA5eEo9C+xaoWjl7jghZe0BaRDfiHJwAiHRE1GlVPBhnF
fsKtKarhman8eGjJWvkWlkf1EOPWXJQ2wbqRm2ydEstHQ4rDwUcCpirgHwIM89mo
t/4pheflxOX9oLotrLVwhqAleurrVXa66Pp6Lqym+Z6GhBh4mayFU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-103.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,USER_IN_WHITELIST autolearn=ham version=3.3.2 spammy=conversation, computers, H*M:3020709, H*Ad:U*reply-to-list-only-lh
X-HELO: pool-173-76-164-160.bstnma.fios.verizon.net
Reply-To: cygwin AT cygwin DOT com
Subject: Re: Access windows environment variable via cygwin
References: <29cf87ff-beb3-5c22-eb47-ddb0ad6d4ae0 AT web DOT de> <a6f5292b-aab3-efa4-ad5d-324c72e93ed6 AT cs DOT umass DOT edu>
To: cygwin AT cygwin DOT com
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Message-ID: <5915276E.3020709@cygwin.com>
Date: Thu, 11 May 2017 23:09:34 -0400
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
MIME-Version: 1.0
In-Reply-To: <a6f5292b-aab3-efa4-ad5d-324c72e93ed6@cs.umass.edu>

On 05/11/2017 10:44 PM, Eliot Moss wrote:
> On 5/11/2017 9:14 PM, ChampS wrote:
>> Hi,
>>
>> I want to use Cygwin to access all Windows applications installed on my
>> Windows 7 system. The
>> Problem is that Windows is using spaces in its environment variable 'Path'
>> and Cygwin can not handle
>> the spaces. Is there a way to use the Windows environment variable 'Path'
>> even with spaces in it?
>> For Example I want to start x86 sbt via Cygwin, then I will get the
>> following error message:
>> "/cygdrive/c/Program Files (x86)/sbt/bin/sbt: line 61:
>> /sbt-launch-lib.bash: No such file or
>> directory". But when I try it with the default Windows cmd it works.
>>
>> Thought about something like iterating over the 'Path' environment
>> variable in bashrc and adapt the
>> strings to fit for Cygwin. But I don't know how I can access the Windows
>> environment variables and
>> how I could provide the adapted environment variable to Cygwin.
>>
>> Someone an idea how I could solve this issue?
>
> Yeah, spaces are hell in paths in the Posix/Linux kind of world.

Really, they are just as bad in the Windows world, as one quickly finds out
if you're at a command prompt.  Just as spaces in path and file names need
to be escaped in POSIX/Linux/Unix and like environments, Windows requires
the same thing.  It just uses different syntax for doing so.  But that's
OK.  Without all this complication, using computers would be no fun at all.
;-)

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019