[newlib-cygwin] Cygwin: fix utils path handling in case cygdrive path is just '/'

2018-02-16 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=26bcedda20c88c7bfbcef106dbb240b8b591cf59 commit 26bcedda20c88c7bfbcef106dbb240b8b591cf59 Author: Corinna Vinschen <cori...@vinschen.de> Date: Fri Feb 16 17:21:48 2018 +0100 Cygwin: fix utils path handling in case cygdriv

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
-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.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info

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
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

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

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

2009-02-10 Thread Thorsten Kampe
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. /etc/fstab For that matter, how would a windows .bat file find the 'mount.exe' binary if the .bat file doesn't know 'cygdrive

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

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 Cygwin application (meaning it doesn't have to know

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

2009-02-09 Thread Linda Walsh
-- 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 'cygdrive path'? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem

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)
. --- 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 what you want. ;-) And, like I said, the registry won't be used for 1.7 so anyone

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

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

2009-02-09 Thread Linda Walsh
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 what you want. ;-) And, like I said, the registry won't

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

2009-02-09 Thread Larry Hall (Cygwin)
, 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 what you want. ;-) And, like I said

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:

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 :) ).

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 first

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 first

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

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

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