bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in /bin/ls


From: Craig Bourne
Subject: bug in /bin/ls
Date: Tue, 30 Sep 2003 20:16:29 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5; MultiZilla v1.5.0.0h) Gecko/20030917

I am running RedHat Linux 9.0
Linux version 2.4.20-6 (address@hidden) (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:

address@hidden craig]$ mkdir junk
address@hidden craig]$ cd junk
address@hidden junk]$ >somefile
address@hidden junk]$ mkdir somedir
address@hidden junk]$ >hp
address@hidden junk]$ >hpsomefile
address@hidden junk]$ ls
somedir  somefile
address@hidden junk]$ find .
.
./somefile
./somedir
address@hidden junk]$ file *
hp:         empty
hpsomefile: empty
somedir:    directory
somefile:   empty
address@hidden junk]$ rm hp
address@hidden junk]$ ls
somedir  somefile
address@hidden junk]$ file *
hpsomefile: empty
somedir:    directory
somefile:   empty
address@hidden junk]$ mkdir hp
address@hidden junk]$ mkdir hpsomedir
address@hidden junk]$ ls
somedir  somefile
address@hidden junk]$ find .
.
./somefile
./somedir
address@hidden junk]$ file *
hp:         directory
hpsomedir:  directory
hpsomefile: empty
somedir:    directory
somefile:   empty
address@hidden junk]$ which -a find
/usr/bin/find
address@hidden junk]$ which -a file
/usr/bin/file
address@hidden junk]$ which -a ls
alias ls='ls --color=tty'
       /bin/ls
address@hidden junk]$ which ls
alias ls='ls --color=tty'
       /bin/ls
address@hidden 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.
address@hidden junk]$ find --version
GNU find version 4.1
address@hidden 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]