Bug in 'ls'

Todd Geders <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
If you have a filename beginning with a "dash" such as '-test.png' and you
attempt to 'ls *.png' you get the following error:

$ ls *.png
ls: invalid option -- e
Try `ls --help' for more information.

$ ls | grep png
-test.png

This is with GNU fileuitls version 4.1.11 on a GNU/Linux machine running
Gentoo Linux 1.2 with gcc 2.95.3.  Have not been able to test on other
distribution.  AFAIK, the only forbidden characters are / and NULL, so I
believe it is a bug.

~Todd Geders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.