public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ls --color (strange display)
@ 2003-09-18 17:58 Philippe Bastiani
  2003-09-18 19:33 ` Andrew DeFaria
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Bastiani @ 2003-09-18 17:58 UTC (permalink / raw)
  To: cygwin

Hi,

When i had the --color option to the 'ls c:' command line, i obtain the 2
followings lines:
ls: c:/hiberfil.sys: No such file or directory
ls: c:/pagefile.sys: No such file or directory

Note: c:/hiberfil.sys & c:/pagefile.sys are 2 existing files... displayed
when i remove this option!

a+
-- 
Philippe Bastiani




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

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

* Re: ls --color (strange display)
  2003-09-18 17:58 ls --color (strange display) Philippe Bastiani
@ 2003-09-18 19:33 ` Andrew DeFaria
  2003-09-19  5:46   ` Philippe Bastiani
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew DeFaria @ 2003-09-18 19:33 UTC (permalink / raw)
  To: cygwin

Philippe Bastiani wrote:

> Hi,
>
> When i had the --color option to the 'ls c:' command line, i obtain the 2
> followings lines:
> ls: c:/hiberfil.sys: No such file or directory
> ls: c:/pagefile.sys: No such file or directory
>
> Note: c:/hiberfil.sys & c:/pagefile.sys are 2 existing files... displayed
> when i remove this option!

My WAG is that with --color, ls is opening files to look at the first 
few bytes in an effort to determine what type of file it is. You do not 
have permissions to open C:/hiberfil.sys nor c:/pagefile.sys so it fails.
===
Obligatory witty saying: Enter any 11-digit prime number to continue...



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

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

* Re: ls --color (strange display)
  2003-09-18 19:33 ` Andrew DeFaria
@ 2003-09-19  5:46   ` Philippe Bastiani
  2003-09-19  6:48     ` Larry Hall
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Bastiani @ 2003-09-19  5:46 UTC (permalink / raw)
  To: cygwin

Hi,

> My WAG is that with --color, ls is opening files to look at the first
> few bytes in an effort to determine what type of file it is. You do not
> have permissions to open C:/hiberfil.sys nor c:/pagefile.sys so it fails.


Yes, these 2 files are unreadable! But, IMHO, 'ls' should not fails, and
displays the unreadable files without color!

a+
--
Philippe




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

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

* Re: ls --color (strange display)
  2003-09-19  5:46   ` Philippe Bastiani
@ 2003-09-19  6:48     ` Larry Hall
  0 siblings, 0 replies; 4+ messages in thread
From: Larry Hall @ 2003-09-19  6:48 UTC (permalink / raw)
  To: Philippe Bastiani, cygwin

At 01:30 AM 9/19/2003, Philippe Bastiani you wrote:
>Hi,
>
>> My WAG is that with --color, ls is opening files to look at the first
>> few bytes in an effort to determine what type of file it is. You do not
>> have permissions to open C:/hiberfil.sys nor c:/pagefile.sys so it fails.
>
>
>Yes, these 2 files are unreadable! 


Correct.  That's Windows.


>But, IMHO, 'ls' should not fails, and
>displays the unreadable files without color!


http://cygwin.com/acronyms/#PTC



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


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

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

end of thread, other threads:[~2003-09-19  5:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18 17:58 ls --color (strange display) Philippe Bastiani
2003-09-18 19:33 ` Andrew DeFaria
2003-09-19  5:46   ` Philippe Bastiani
2003-09-19  6:48     ` Larry Hall

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