public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* minor bug - No ".." directory gives error in ls
@ 2002-02-14  5:38 Roland Glenn McIntosh
  2002-02-14  6:38 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Glenn McIntosh @ 2002-02-14  5:38 UTC (permalink / raw)
  To: cygwin

In some cases when listing a directory in which there is no parent ls gives an error:
	ls: ..: No such file or directory

If there was no directory then I would expect ".." to refer to "." like it does in the root of a unix partition.  Specifically, this happens with network shares.  To reproduce:

cd //192.168.0.2/shared
ls -la

Where 192.168.168.0.2 is a server on which you have authenticated yourself or need no authentication, and 'shared' is a directory which has been shared.  There should be no other resources available at 192.168.0.2 via CIFS other than the shared directory.

-rgm


--
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] 2+ messages in thread

* Re: minor bug - No ".." directory gives error in ls
  2002-02-14  5:38 minor bug - No ".." directory gives error in ls Roland Glenn McIntosh
@ 2002-02-14  6:38 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-02-14  6:38 UTC (permalink / raw)
  To: Roland Glenn McIntosh, cygwin

At 08:37 AM 2/14/2002, Roland Glenn McIntosh wrote:
>In some cases when listing a directory in which there is no parent ls gives an error:
>         ls: ..: No such file or directory
>
>If there was no directory then I would expect ".." to refer to "." like it does in the root of a unix partition.  Specifically, this happens with network shares.  To reproduce:
>
>cd //192.168.0.2/shared
>ls -la
>
>Where 192.168.168.0.2 is a server on which you have authenticated yourself or need no authentication, and 'shared' is a directory which has been shared.  There should be no other resources available at 192.168.0.2 via CIFS other than the shared directory.


OK.  For me this works fine at my root (/).  I do get the error you claim
if I "ls .." from a network share directory, as you indicate.  Since there
is no analog to this in the UNIX world, it's not that surprising that this
doesn't just work.  If you are interested in providing a patch to implement 
the behavior you're interested in, I'm sure it will be thoughtfully 
considered.  Otherwise, the mail archives will contain a record of your 
report for anyone looking for a bug to fix.

Thanks,



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
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] 2+ messages in thread

end of thread, other threads:[~2002-02-14 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-14  5:38 minor bug - No ".." directory gives error in ls Roland Glenn McIntosh
2002-02-14  6:38 ` Larry Hall (RFK Partners, Inc)

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).