ftp://ftp.doc.ic.ac.uk/pub/gnu/cygnus/gnu-win32
I'm having trouble getting the grep to resolve drive letters.
If my current directory is c:\foo\bar and I type:
grep -i john c:/txt/phone/phone.txt
I get:
GREP.EXE: c:/doc/phone/phone.txt: No such file or directory
when I type:
grep -i john /doc/phone/phone.txt
it works fine.
As a matter of fact, cat.exe just did the same thing to me.
it seems like there are problems resolving the drive letter correctly.
Is this a know bug or am I not specifying the drive letter right?
Thanks,
-Nick
: ftp://ftp.doc.ic.ac.uk/pub/gnu/cygnus/gnu-win32
: I'm having trouble getting the grep to resolve drive letters.
: If my current directory is c:\foo\bar and I type:
: grep -i john c:/txt/phone/phone.txt
: I get:
: GREP.EXE: c:/doc/phone/phone.txt: No such file or directory
[...]
You'll have to mount your drives using the "mount.exe" utility. The
"C:" drive is automatically mounted as "/", so c:/txt/phone/phone.txt
translates to /txt/phone/phone.txt. You can mount other drives or
directories using "mount d:\ /usr2" or "mount f:\bin /usr/bin". All
GNU utilities (or generally, all programs generated by gcc-cygwin32)
handle path names exclusively in Un*x notation; the D*S or UNC path
names are not recognized any more.
mike
>You'll have to mount your drives using the "mount.exe" utility. The
>"C:" drive is automatically mounted as "/", so c:/txt/phone/phone.txt
>translates to /txt/phone/phone.txt. You can mount other drives or
>directories using "mount d:\ /usr2" or "mount f:\bin /usr/bin". All
>GNU utilities (or generally, all programs generated by gcc-cygwin32)
>handle path names exclusively in Un*x notation; the D*S or UNC path
>names are not recognized any more.
What do I do if my WINNT lives on D: and C: is a FAT partition
(no long files names)? Is there some way to make D:\ correspond
to / ?
- Josh
--
-------------------------------------------------------------------------------
jstern
jst...@primenet.com
-------------------------------------------------------------------------------
: >You'll have to mount your drives using the "mount.exe" utility. The
: >"C:" drive is automatically mounted as "/", so c:/txt/phone/phone.txt
: >translates to /txt/phone/phone.txt. You can mount other drives or
: >directories using "mount d:\ /usr2" or "mount f:\bin /usr/bin". All
: >GNU utilities (or generally, all programs generated by gcc-cygwin32)
: >handle path names exclusively in Un*x notation; the D*S or UNC path
: >names are not recognized any more.
: What do I do if my WINNT lives on D: and C: is a FAT partition
: (no long files names)? Is there some way to make D:\ correspond
: to / ?
Use regedt32 to change the registry entry "DefaultDrive" to "d:"
(see HKEY_LOCAL_MACHINE->SOFTWARE->Cygnus Support).
mike