Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

get cygpath to leave relative paths as relative?

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 12-03-2007   -   Original Discussion by fabulous2
fabulous2's Unix or Linux Image
fabulous2 fabulous2 is offline
Registered User
Join Date: Dec 2007
Last Activity: 1 February 2014, 10:39 PM EST
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
get cygpath to leave relative paths as relative?

If I execute
mypath=`cygpath -w ../`
echo $mypath
I get
OK, d:\unix\nextVersion\script is the correct windows version of the path, but it is in absolute form. I would prefer it if cygpath left it in relative form, i.e.
echo $mypath
should output
cygpath --help
indicates that the only related option is -a, but that forces conversion to absolute paths, which is the opposite of what I want. It seems, unfortunately, as if cypath has -a on by default and has no way to turn it off!

Is this a known bug in cygpath, or did I overlook something? (Web searching on cygpath and "relative path" generated a flood of hits, but none out of the first 100 that i looked thru seemed related...)
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
tar and relative paths BeefStu Shell Programming and Scripting 1 03-10-2011 05:41 AM
Print sum and relative value of the sum saint2006 Shell Programming and Scripting 2 07-08-2010 11:37 AM
Absolute and Relative Paths? stubie UNIX for Dummies Questions & Answers 1 10-05-2009 05:20 PM
relative pointers on Unix rahul_verma Programming 3 07-24-2005 01:36 AM
Relative directory - NOT absolute sierra_aar Shell Programming and Scripting 4 09-09-2002 06:11 AM

All times are GMT -4. The time now is 02:29 PM.