public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ -d ' ' ] && echo yes
@ 2003-02-03 22:03 Norton Allen
  2003-02-03 22:14 ` Elfyn McBratney
  0 siblings, 1 reply; 10+ messages in thread
From: Norton Allen @ 2003-02-03 22:03 UTC (permalink / raw)
  To: cygwin

Inasmuch as such a directory does not exist, this should
not give any output:

  [ -d ' ' ] && echo yes

I suspect this is not a feature of bash, but more deeply
buried, since

  ls -ld ' '

believes ' ' is a directory and

  ls -la ' '

will give you 'total 0' (no . or .. entries).
It also believes any name consisting of all spaces is
a directory.

On the plus side, you can't create a real directory or
file named ' ', because it thinks one already exists.

  -Norton Allen
  

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-02-04  2:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 22:03 [ -d ' ' ] && echo yes Norton Allen
2003-02-03 22:14 ` Elfyn McBratney
2003-02-03 22:19   ` Norton Allen
2003-02-03 22:24     ` Elfyn McBratney
2003-02-03 22:30       ` Norton Allen
2003-02-03 22:35         ` Elfyn McBratney
2003-02-03 22:45         ` Max Bowsher
2003-02-03 22:55           ` wayne
2003-02-03 23:01             ` Max Bowsher
2003-02-04  2:32           ` Norton Allen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).