bug-coreutils
[Top][All Lists]
Advanced

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

Re: GNU coreutils 6.9 - bug in ls


From: Eric Blake
Subject: Re: GNU coreutils 6.9 - bug in ls
Date: Sun, 09 Sep 2007 08:41:16 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----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             address@hidden
-----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-----




reply via email to

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