-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to FReeZ on 9/9/2007 5:59 AM:
> Hello,
> 
> I have founded a weird bug in coreutils, probably it's in ls.
> sh-3.2$ cd /home/user/watch
> sh-3.2$ ls *
> ls: invalid option -- ^

Nope. Not a bug in ls, but in your usage patterns.  This is a FAQ:

http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#How-do-I-remove-files-that-start-with-a-dash_003f

You meant to do 'ls -- *'.

Or even better, since * expands to all the non-dot files in the current
directory, and since ls does that by default, you could simply do 'ls';
this has the added benefit of avoiding another FAQ problem:

http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Argument-list-too-long

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG5AYM84KuGfSFAYARAqRUAJsGZIxrk9UbXDlUK8SKNzUNry2b9QCfcHxl
58417TCoDcBCxs57ksK8FQQ=
=K1WD
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to