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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=aViqRr4jSWf9U7fY G3UDS37Wtr09bWsN1sSzWsPKqzN7q1n0lgYQGpc/PuSlX2FMkBwDi+xizr+ofCf8 UqHxknBiM0OZe5BGwbwV4WpWnVykL0gnkkoooFtnxGd8RQe+MGV1OpYnpot84Mis gnXSZohgSqnzTs/iwQX2PsS7N5U= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=rZPnU2aKMKsae17eCcxO0U bC+Hk=; b=p84OqgRf/xgrtUxyEdjE9uhkSBJJ07dCozoKOL17d+8i0Hw1Mkb8K+ Mveyl79jNlLwcfOHDfXa+zqNRpingNMTcv9+oGCSCKppL1OOwX128Ak+di2Elyvl c2iZFBqmZxVtcQ31zY7t1LIcMGHARwxulFO1GwAre3qSIFUACi0yw= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=83, H*r:ip*192.168.0.6, HContent-Transfer-Encoding:8bit X-HELO: mail-io0-f170.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=yr6VxvrWWEtoPqjKuDzMWqvJwKkSA9/+A1cePcxRiPU=; b=EBKfyVKHoPhzQeKF6aLbhKkZow50mo0+UUyuPq47XQXngqcM+Dk26HD4ISkO46LyWi Gj73bYWeafOnbEoN0W1LPgR3xQFk7AXULZzhMUaSLdE8YamYfz3ksQJ5efV/DPyYOsIp 7LNLMg5t1jFBhWP5Kjce58T7vSGEAafH3X7yCywNeUashWZ+hVu7UoMrzJo7DsPSn886 qso7nCrj977Z9tTb4cDvB0Zk83QhMliH9spfjYZEcBf7m+a09Gk6Xo26diDLw6ULpWcC WlnRhj1FNY2psie3UPLg6bMpkUeyIznW/vhZibjdWrZyHtY9CnRfJrq7+IJLhlgVDE8r WhWQ== X-Gm-Message-State: AODbwcC0vK/SNScLKxZaKh7PSTm8IARrZHij70vmqB84f8mgTW1T0Yuz hdKVGRtJG3HMvA52 X-Received: by 10.107.1.70 with SMTP id 67mr3879930iob.159.1494599036541; Fri, 12 May 2017 07:23:56 -0700 (PDT) Subject: Re: Access windows environment variable via cygwin To: cygwin AT cygwin DOT com References: <29cf87ff-beb3-5c22-eb47-ddb0ad6d4ae0 AT web DOT de> From: cyg Simple Message-ID: <555b2c14-2d01-d0a8-3a8b-567fcfa82a75@gmail.com> Date: Fri, 12 May 2017 10:23:56 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <29cf87ff-beb3-5c22-eb47-ddb0ad6d4ae0@web.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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? > Besides all of the other help already suggested you can also use the 8.3 format of the directory name to remove the spaces from PATH in your Windows environment variable. Then Cygwin will not see the spaces either. The use of 8.3 format is configurable and you may need to turn it on for the drive. Use the "dir /X" cmd.exe command to see if you have the 8.3 name. -- cyg Simple -- 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