This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: [bug?] Directory lister (d) doesn't properly translate drive letters
On 29 August 2007 13:31, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> According to Ronald Fischer on 8/29/2007 4:57 AM:
>> ~/thome $ d t:/rfischer
>> /cygdrive/h/thome/t:/rfischer doesn't exist!
>> ~/thome $
>>
>> While ls seems to understand the notion of t:, d does not.
>
> Not necessarily a bug. Using drive letter notation in cygwin is asking
> for problems, you should instead use /cygdrive/t. The fact that it works
> for some applications is happenstance, not design.
Well, any application that just passes it's argv[] parameters directly to
(f)open will work just fine. Any app that tries to parse and perform string
manipulation on them, OTOH, is going to go wrong... such as by interpreting it
as a relative path to $CWD, as in this example.
I'd report it upstream.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/