Dear Craig Bourne,

I am unable to reproduce the problem on a stock Red Hat 9 installation.

First, are you sure you're running Red Hat 9.0 (I'm sorry if this sounds dumb)?  The system I'm on has kernel version 2.4.20-18.9, not 2.4.20-6, and was compiled on May 29, 2003, not on Feb 27.

ls --version gives:
        ls (coreutils) 4.5.3
with a copyright date of 2002, not version 4.0x with a copyright date of  2000 as in your distribution.

And find --version gives 4.1.7, not 4.1 as in your distribution.

It would be great if you'd check against a newer version, ideally off of the CVS head if you're comfortable checking it out.  (I'm running 5.0.92, off of the CVS head).

--Steve Augart



Craig Bourne <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

09/30/2003 08:16 PM
Please respond to cbourne

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        bug in /bin/ls



I am running RedHat Linux 9.0
Linux version 2.4.20-6 ([EMAIL PROTECTED]) (gcc version
3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Feb 27 10:06:59 EST 2003

I find that files which have names starting with the characters hp are
invisible to /bin/ls ( also to /usr/bin/find but not to /usr/bin/file ).

The following sequence should illustrate:

[EMAIL PROTECTED] craig]$ mkdir junk
[EMAIL PROTECTED] craig]$ cd junk
[EMAIL PROTECTED] junk]$ >somefile
[EMAIL PROTECTED] junk]$ mkdir somedir
[EMAIL PROTECTED] junk]$ >hp
[EMAIL PROTECTED] junk]$ >hpsomefile
[EMAIL PROTECTED] junk]$ ls
somedir  somefile
[EMAIL PROTECTED] junk]$ find .
.
./somefile
./somedir
[EMAIL PROTECTED] junk]$ file *
hp:         empty
hpsomefile: empty
somedir:    directory
somefile:   empty
[EMAIL PROTECTED] junk]$ rm hp
[EMAIL PROTECTED] junk]$ ls
somedir  somefile
[EMAIL PROTECTED] junk]$ file *
hpsomefile: empty
somedir:    directory
somefile:   empty
[EMAIL PROTECTED] junk]$ mkdir hp
[EMAIL PROTECTED] junk]$ mkdir hpsomedir
[EMAIL PROTECTED] junk]$ ls
somedir  somefile
[EMAIL PROTECTED] junk]$ find .
.
./somefile
./somedir
[EMAIL PROTECTED] junk]$ file *
hp:         directory
hpsomedir:  directory
hpsomefile: empty
somedir:    directory
somefile:   empty
[EMAIL PROTECTED] junk]$ which -a find
/usr/bin/find
[EMAIL PROTECTED] junk]$ which -a file
/usr/bin/file
[EMAIL PROTECTED] junk]$ which -a ls
alias ls='ls --color=tty'
       /bin/ls
[EMAIL PROTECTED] junk]$ which ls
alias ls='ls --color=tty'
       /bin/ls
[EMAIL PROTECTED] junk]$ ls --version
ls (GNU fileutils) 4.0x
Written by Richard Stallman and David MacKenzie.

Copyright (C) 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[EMAIL PROTECTED] junk]$ find --version
GNU find version 4.1
[EMAIL PROTECTED] junk]$ file --version
file-3.39
magic file from /usr/share/magic

Let me know if I can be of further help with diagnosis of this problem.

Best Regards,
Craig Bourne




_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to