GNU bug report logs -
#9504
ls oddity
Previous Next
Reported by: Dave Pawson <dave.pawson <at> gmail.com>
Date: Wed, 14 Sep 2011 12:04:01 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9504 in the body.
You can then email your comments to 9504 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#9504
; Package
coreutils
.
(Wed, 14 Sep 2011 12:04:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dave Pawson <dave.pawson <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 14 Sep 2011 12:04:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
ls -al works as expected
ls *.xml ... fails?
[dpawson <at> localhost pawson]$ ls *.xml
ls: invalid option -- ':'
Try `ls --help' for more information.
Not sure if it's a bug or my setup?
Using fedora core 15. Fully up to date
$ ls --version
ls (GNU coreutils) 8.10
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#9504
; Package
coreutils
.
(Wed, 14 Sep 2011 14:10:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 9504 <at> debbugs.gnu.org (full text, mbox):
On Wed, 14 Sep 2011 12:58:14 +0100, Dave Pawson <dave.pawson <at> gmail.com>
wrote:
> ls -al works as expected
>
> ls *.xml ... fails?
>
> [dpawson <at> localhost pawson]$ ls *.xml
> ls: invalid option -- ':'
> Try `ls --help' for more information.
>
>
> Not sure if it's a bug or my setup?
You have some filename that confuses ls. Try one of:
ls ./*.xml
ls -- *.xml
(and use sane filenames in the future).
--
D.
Reply sent
to
Eric Blake <eblake <at> redhat.com>
:
You have taken responsibility.
(Wed, 14 Sep 2011 14:10:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Dave Pawson <dave.pawson <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 14 Sep 2011 14:10:03 GMT)
Full text and
rfc822 format available.
Message #13 received at 9504-done <at> debbugs.gnu.org (full text, mbox):
tag 9504 notabug
thanks
On 09/14/2011 05:58 AM, Dave Pawson wrote:
> ls -al works as expected
>
> ls *.xml ... fails?
>
> [dpawson <at> localhost pawson]$ ls *.xml
> ls: invalid option -- ':'
> Try `ls --help' for more information.
>
>
> Not sure if it's a bug or my setup?
The only bug here is in your command line arguments. This is a FAQ:
https://www.gnu.org/software/coreutils/faq/#I-have-a-file-_0027_002df_0027-and-it-affects-rm_002e
Try:
echo ls *.xml
to see what the glob expanded to; my guess is that you have a file named
"-:.xml" or something similar, which ls is then trying to interpret as
an option.
To avoid the problem, use either:
ls -- *.xml
ls ./*.xml
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
Message #14 received at 9504-done <at> debbugs.gnu.org (full text, mbox):
tags 9504 + notabug
thanks
Davide Brini wrote:
> On Wed, 14 Sep 2011 12:58:14 +0100, Dave Pawson <dave.pawson <at> gmail.com>
> wrote:
>
>> ls -al works as expected
>>
>> ls *.xml ... fails?
>>
>> [dpawson <at> localhost pawson]$ ls *.xml
>> ls: invalid option -- ':'
>> Try `ls --help' for more information.
>>
>>
>> Not sure if it's a bug or my setup?
>
> You have some filename that confuses ls. Try one of:
>
> ls ./*.xml
>
> ls -- *.xml
>
> (and use sane filenames in the future).
Thanks for replying.
I've inserted "-done" between the Cc'd number and @debbugs.gnu.org to
tell the bug-tracker that this issue is "done".
The two lines at the top mark this as a non-bug.
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Tue, 20 Sep 2011 18:01:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 19 Oct 2011 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.