delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/28/16:43:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Soren A <soren_andersen AT fastmail DOT fm>
Subject: Re: cygwin path problems
Date: Tue, 28 Jan 2003 21:41:36 +0000 (UTC)
Organization: Occasionally Sporadically
Lines: 43
Message-ID: <Xns9311AA1C68C0Fsoren1Gmane@80.91.224.249>
References: <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030127110753 DOT 027a0b00 AT pop3 DOT cris DOT com>
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Xnews/L5
X-Archive: encrypt

Randall R Schulz <rrschulz AT cris DOT com> wrote around 27 Jan 2003 
news:5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030127110753 DOT 027a0b00 AT pop3 DOT cris DOT com:

> Note, too, that if you have a classpath variable in POSIX format 
> (colons and no drive letters), you'll need to use something like 
> "$(cygpath -pm "$POSIXCLASSPATH")" to convert it.
> 
> 
> Only (_only_) Cygwin-linked code will understand the "/cygdrive/..." 
> file names.

And also note that if you are trying to use (bash/posix-unixy) shell
*wildcards* [ ;-) ] to pass filenames as _arguments_ to your Java class
(program), you need to know that Java will receive them in Cygwin's
posix format and won't grok them. The results of a shell expansion like 
this:

   /cdv/D/goodies/babe*.jpg

IOW, won't be formatted like

  "/cdv/D/goodies/babe1.jpg:/cdv/D/goodies/babe2.jpg:[...]"

but instead just as plain list of space-separated filespecs. AFAIK,
`cygpath' cannot help you there (corrections will come as a surprise but
are welcome, "cygpath" gurus). Of course a little more elaborate
shell-wrapper magic might hack you a way out of that problem, robustness
and speed-performance are likely to be lacking, tho. 

So if you run into this trouble you might want to go download my Java
class "CygwinShellInterface", written to translate Cygwin's posix
filenames into Win32 ones that Java understands: 

  http://home.att.net/~perlspinr/framesets/cygwininfo_frmset.html

Or re-invent that wheel, your choice ;-)

  Soren A

-- 
"So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?"
                       - Dr. Jumba, Disney's "Lilo & Stitch"


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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