X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.9 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_PASS,TW_YG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: Making Unix like paths work when using java program from Cygwin
Date: Fri, 18 May 2012 10:46:05 -0700
Lines: 19
Message-ID: <jp61t0$las$1@dough.gmane.org>
References: <CA+sc5mm2eUv45ABD4KFQvLo=Cxcw868w4u1E7eDsoK7bNFb83Q@mail.gmail.com> <1337353913.48698.YahooMailClassic@web28605.mail.ukl.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
In-Reply-To: <1337353913.48698.YahooMailClassic@web28605.mail.ukl.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 5/18/2012 8:11 AM, Marilo wrote:
> The java aspect looks like a red herring as not relevant to the problem.
>
> You want to run a *nix shell script and presumably don't want to write your own bat file doing the same job.
>
> I'm probably missing something but given that there's cygwin, and it's a *nux script, what about just editing the script for your computer, amending the paths in the script, with  a find and replace, so /ABC/XYZ is replaced with /cygdrive/c/ABC/XYZ and running the script in cygwin.
That's a bad thing to do! Now you have deviated and have a unique 
version of this script. It will not work 6 months down the road when the 
script is updated on the Unix/Linux side and you have to again port it.

Instead carefully test to make sure you're in Cygwin and when in Cygwin 
use cygpath appropriately. Then "contribute" the code back from whence 
it came so you have a hope that the next version will at least have your 
portability changes if not the modifier will simply follow suit and take 
into account Cygwin users as you've shown can be done.
-- 
Andrew DeFaria <http://defaria.com>
As the shopper placed her groceries on the checkout stand, the bagger 
asked her paper or plastic? Doesn't matter, she replied, I'm bisackual.


--
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

