in reply to true from (-e "") on Windoze

It's not just two doublequotes. Just one doublequote, three doublequotes, ... seems any number of doublequotes work. Considering the fact that a doublequote is an illegal character in file names in Windows ...

Jenda
Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^2: true from (-e "") on Windoze
by afoken (Chancellor) on Jul 02, 2012 at 20:05 UTC
    It's not just two doublequotes. Just one doublequote, three doublequotes, ... seems any number of doublequotes work.

    ... but not in C code, only in perl.

    Considering the fact that a doublequote is an illegal character in file names in Windows ...

    ... there can be no file or directory with such a name, so stat() should fail, either with "file not found" or with "invalid file name". But it should not stat() the current directory instead.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)