This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ -d ' ' ] && echo yes


>   FWIW, I've just tested on Linux (of some flavor) and OpenBSD,
>   and neither thinks ' ' is a directory.
>
>   In any event, I'd like to figure out whether it's a bug or
>   a feature under Cygwin so I can move forward.

Sorry, it is my head then :/

It may just be a Cygwin geature, and by looking at the strace output

  293 1191913 [main] ls 2188 fhandler_base::fstat: here
   99 1192012 [main] ls 2188 fstat64: 0 = fstat (1, 0x241FCA8)
  298 1192310 [main] ls 2188 writev: writev (1, 0x241FD78, 1)
  480 1192790 [main] ls 2188 fhandler_base::write: binary write
total 0

It looks as if passing ' ' to ls -al makes it think that ' ' is the current
working directory. Never looked at the fhandler code so I'm probably way out
:::::-)


Regards,

Elfyn McBratney
elfyn@exposure.org.uk
www.exposure.org.uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]