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
The mount manpage says: -p, --show-cygdrive-prefix show user and/or system cygdrive path prefix The and/or would suggest you could have different user and system cygdrive path prefixes active at once, which would potentially be a bit confusing Also, is there a better way to

Re: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")

2009-02-10 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Thorsten Kampe on 2/10/2009 2:01 AM: >> For that matter, how would a windows .bat file find the >> 'mount.exe' binary if the .bat file doesn't know 'cygdrive path'? > > Mount is not a Cyg

Re: How does one find "cygdrive path" in a Win ".bat" file

2009-02-10 Thread Fergus
This might not be quite what you are after, but possibly will provide a starting point. My Cygwin installation is mounted in the root directory of a portable drive so, depending on where I am, the drive might end up being D: or F: or G: or M: or ... The lines following are the first few lines i

Re: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")

2009-02-10 Thread Thorsten Kampe
efix" > > > > No, you don't need to look in the registry. There's nothing there that > > 'mount' won't tell you. Forget about the registry. You'll be better > > off, especially when Cygwin 1.7 is released. > --- > I'm curiou

Re: How does one find "cygdrive path" in a Win ".bat" file

2009-02-09 Thread Larry Hall (Cygwin)
you. Forget about the registry. You'll be better off, especially when Cygwin 1.7 is released. --- I'm curious -- how does mount find or 'know' the cygdrive path if it doesn't come from the registry. How it finds it is an implementation detail. There's no need

Re: How does one find "cygdrive path" in a Win ".bat" file

2009-02-09 Thread Linda Walsh
ut the registry. You'll be better off, especially when Cygwin 1.7 is released. --- I'm curious -- how does mount find or 'know' the cygdrive path if it doesn't come from the registry. How it finds it is an implementation detail. There's no need to know how it does

Re: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")

2009-02-09 Thread Ralph Hempel
Here's how I do it in a little batch file that I put on my USB pen drive: It's in the attached .TXT file - you'll need to rename it to .BAT Note that this batch file will OVERWRITE your fstab so please review it before installing and using it on your system. Basically, it lets me carry Cygwin o

Re: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")

2009-02-09 Thread Larry Hall (Cygwin)
l be better off, especially when Cygwin 1.7 is released. --- I'm curious -- how does mount find or 'know' the cygdrive path if it doesn't come from the registry. How it finds it is an implementation detail. There's no need to know how it does what it does if it does wh

How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")

2009-02-09 Thread Linda Walsh
specially when Cygwin 1.7 is released. --- I'm curious -- how does mount find or 'know' the cygdrive path if it doesn't come from the registry. For that matter, how would a windows .bat file find the 'mount.exe' binary if the .bat file doesn't know &#x

Re: cygdrive path

2004-02-06 Thread Jan Buys
I will try out the DDD/cygwin solution for now (deeply ashamed I did not notice it was there somewhere)... Thanks Igor and Larry for your answers :) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: h

Re: cygdrive path

2004-02-05 Thread Larry Hall
At 01:36 PM 2/5/2004, Jan Buys you wrote: >Hello, > >Sorry if this is a dumb newbie question. I am a dumb newbie to cygwin after >all :-) > >I use the gcc compiler under cygwin to make some big builds. gdb is used to >debug. However : I want to use a DDD-style visual front-end to gdb and my >

Re: cygdrive path

2004-02-05 Thread Igor Pechtchanski
On Thu, 5 Feb 2004, Jan Buys wrote: > Hello, > > Sorry if this is a dumb newbie question. I am a dumb newbie to cygwin after > all :-) > > I use the gcc compiler under cygwin to make some big builds. gdb is used to > debug. However : I want to use a DDD-style visual front-end to gdb and my > fi

cygdrive path

2004-02-05 Thread Jan Buys
Hello, Sorry if this is a dumb newbie question. I am a dumb newbie to cygwin after all :-) I use the gcc compiler under cygwin to make some big builds. gdb is used to debug. However : I want to use a DDD-style visual front-end to gdb and my first choice was GNAT/GPS (looks DDD-like :) ). T

Re: Cygdrive Path Prefix Question

2003-07-18 Thread Andrew DeFaria
Corinna Vinschen wrote: On Thu, Jul 17, 2003 at 10:57:25PM -0700, Kenny Carruthers wrote: So just wondering if someone can tell me how I configure cygwin to echo back Win32 style paths instead of POSIX style paths for the current working directory. cygpath -w `pwd` Corinna That answers that qu

Re: Cygdrive Path Prefix Question

2003-07-18 Thread Corinna Vinschen
On Thu, Jul 17, 2003 at 10:57:25PM -0700, Kenny Carruthers wrote: > So just wondering if someone can tell me how I configure cygwin to echo back > Win32 style paths instead of POSIX style paths for the current working > directory. cygpath -w `pwd` Corinna -- Corinna Vinschen Pl

Cygdrive Path Prefix Question

2003-07-17 Thread Kenny Carruthers
Hi, I've been looking throughout the documentation and FAQ's but I still can't figure this one out. This is running against the latest cygwin version (updated using setup.exe from the website). My drive mounts are pretty much standard and look like this: C:\cygwin\bin on /usr/bin type system (bi