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

2009-11-08 Thread aputerguy
: 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 reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation

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

2009-11-08 Thread aputerguy
\) \+\(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. -- Problem reports: http://cygwin.com

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

2009-11-07 Thread aputerguy
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-path-prefixes-active-at-once-tp26227605p26249482.html Sent from

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

2009-11-07 Thread aputerguy
is -- only where 'c' is mounted. Of course, as pointed out in a later reply, one can use an unused disk drive letter like 'x' but that is hardly robust since who knows what drive letters will be unused and/or unmounted. -- View this message in context: http://old.nabble.com/1.7--Can-you-have-multipe

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 cygdrive

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 will include the

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

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

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-tp26227605p26227607.html Sent from

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