delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/12/15:19:24

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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 12 May 2004 15:18:54 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Joshua Daniel Franklin <joshuadfranklin AT yahoo DOT com>
cc: Dave Yost <Dave AT Yost DOT com>, cygwin AT cygwin DOT com
Subject: Re: cygpath
In-Reply-To: <20040512162136.13663.qmail@web61104.mail.yahoo.com>
Message-ID: <Pine.GSO.4.56.0405121510360.26019@slinky.cs.nyu.edu>
References: <20040512162136 DOT 13663 DOT qmail AT web61104 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 12 May 2004, Joshua Daniel Franklin wrote:

> --- Dave Yost wrote:
> [snip]
> > I have a small problem.
> >
> > I have a path ../foo:../bar
> >
> > When I use the --path argument, cygpath insists on converting the relative
> > paths into absolute paths.  I wish it wouldn't do that.  But I can understand
> > the need for backward compatibility, so could I request a --relative option?
>
> You might use a simple sed script to take out what you don't need.

Keeping relative paths might actually be useful functionality in cygpath.
<http://cygwin.com/acronyms/#PTC>.

> > Also:
> >
> > I have this nasty problem with the Sun 1.4.x JDK (fixed in 1.5.0-beta1).  I
> > pass in a classpath argument like this:
> >
> > javac -classpath `cygpath -w /usr/local/jdk/lib/tools.jar` X.java
> >
> > Problem is, /usr/local/jdk is a cygwin symlink, and the java runtime
> > apparently can't follow symbolic links or shortcuts.
>
> I don't use Java with cygwin, so maybe someone else on the list will have
> some ideas for this issue.

Use mounts instead of symlinks.  Alternatively, you can take the java
wrapper script I posted to this list some time ago[*], and modify it to
walk the classpath and resolve symlinks.
	Igor
[*] <http://cygwin.com/ml/cygwin/2003-01/msg00174.html> or use the CVS
version at :pserver:anoncvs AT sources DOT redhat DOT com:/cvs/cygwin-apps (directory
wrappers/java).
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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