delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/18/11:12:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <1337353913.48698.YahooMailClassic@web28605.mail.ukl.yahoo.com>
Date: Fri, 18 May 2012 16:11:53 +0100 (BST)
From: Marilo <narium85-mlscar AT yahoo DOT co DOT uk>
Reply-To: narium85-mlscar AT yahoo DOT co DOT uk
Subject: Re: Making Unix like paths work when using java program from Cygwin
To: cygwin AT cygwin DOT com
In-Reply-To: <CA+sc5mm2eUv45ABD4KFQvLo=Cxcw868w4u1E7eDsoK7bNFb83Q@mail.gmail.com>
MIME-Version: 1.0
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4IFCFsr009082

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.



--- On Fri, 18/5/12, Earnie Boyd  wrote:

> From: Earnie Boyd 
> Subject: Re: Making Unix like paths work when using java program from Cygwin
> To: cygwin
> Date: Friday, 18 May, 2012, 15:58
> On Fri, May 18, 2012 at 9:22 AM,
> Csaba Raduly wrote:
> > On Fri, May 18, 2012 at 1:51 PM, Earnie Boyd  wrote:
> >> On Fri, May 18, 2012 at 4:56 AM, himoundary wrote:
> >>>
> >>> I am working in a team where everyone else has
> a Linux/Mac OS X workstation,
> >>> but I have a windows workstation. Our project
> uses a shell script and a java
> >>> program to automate some deployment/setup etc,
> which needs to create some
> >>> directories of the sort /ABC/XYZ.
> >>> Obviously such paths are not valid in Windows.
> >>>
> >>
> >> You spread falsities about Windows.  Try the
> following in cmd.exe and
> >> you will be in a shock for your life.
> >>
> >> mkdir /ABC/XYZ
> >
> > Well, I tried it. Maybe you should have, too.
> >
> 
> I have before but not working today! ;p
> 
> However rmdir "/abc/xyz" did, note the quotes; the mkdir
> command did
> not.  The one thing I find in Windows, nothing is
> consistent.
> 
> > H:\>mkdir /ABC/XYZ
> > The syntax of the command is incorrect.
> >
> > When it comes to computers, it takes more than that to
> shock me :)
> 
> I'm still surprised occasionally but not often.
> 
> -- 
> Earnie
> -- https://sites.google.com/site/earnieboyd
> 
> --
> 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
> 
>

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