Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-08 Thread aputerguy
nt -p | sed -ne "s/\(.*\S\) \+\(user\|system\) \+.*/\\1/p" -- View this message in context: http://old.nabble.com/1.7--Can-you-have-multipe-cygdrive-path-prefixes-active-at-once-tp26227605p26260538.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Probl

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-08 Thread aputerguy
ortantly, in no case are you left with unresolvable ambiguity. -- View this message in context: http://old.nabble.com/1.7--Can-you-have-multipe-cygdrive-path-prefixes-active-at-once-tp26227605p26260476.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem repo

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-07 Thread Larry Hall (Cygwin)
On 11/06/2009 06:16 PM, Jeremy Bopp wrote: Larry Hall (Cygwin) wrote: On 11/06/2009 05:35 PM, Jeremy Bopp wrote: Thrall, Bryan wrote: Jeremy Bopp wrote on Friday, November 06, 2009 3:31 PM: Well, it's a bit of a hack, but you could try something like the following: $ dirname $(cygpath -u C:

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-07 Thread Lee D. Rothstein
Bopp wrote: > aputerguy wrote: >> Jeremy Bopp writes: >>> Well, it's a bit of a hack, but you could try something like the >>> following: >>> $ dirname $(cygpath -u C:/) >>> This assumes that there is always a C: drive and converts the path to >>> the root of that drive into a POSIX path which

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-07 Thread Jeremy Bopp
aputerguy wrote: > Jeremy Bopp writes: >> Well, it's a bit of a hack, but you could try something like the >> following: >> >> $ dirname $(cygpath -u C:/) > >> This assumes that there is always a C: drive and converts the path to >> the root of that drive into a POSIX path which will include the c

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-07 Thread aputerguy
essage in context: http://old.nabble.com/1.7--Can-you-have-multipe-cygdrive-path-prefixes-active-at-once-tp26227605p26249511.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-07 Thread aputerguy
nux root were not always "/" and that there were no good way to robustly determine what your particular value of root was -- certainly that would break (or at least potentially break) many scripts. -- View this message in context: http://old.nabble.com/1.7--Can-you-have-multipe-cygdrive-

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-05 Thread Jeremy Bopp
aputerguy wrote: > In particular, I can't use "mount -p" to distinguish between prefixes that > might have (variable) number of trailing spaces (which is allowed). I believe that you want to use the cygpath program if you want to convert POSIX paths to Windows paths reliably. Assuming the default

Re: 1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-05 Thread aputerguy
In particular, I can't use "mount -p" to distinguish between prefixes that might have (variable) number of trailing spaces (which is allowed). -- View this message in context: http://old.nabble.com/1.7--Can-you-have-multipe-cygdrive-path-prefixes-active-at-once-tp26227605p262

1.7] Can you have multipe cygdrive path prefixes active at once

2009-11-05 Thread aputerguy
--Can-you-have-multipe-cygdrive-path-prefixes-active-at-once-tp26227605p26227605.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com