GNU bug report logs - #30963
ls -fA -> still . and ..

Previous Next

Package: coreutils;

Reported by: Karl Berry <karl <at> freefriends.org>

Date: Tue, 27 Mar 2018 17:28:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 30963 in the body.
You can then email your comments to 30963 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#30963; Package coreutils. (Tue, 27 Mar 2018 17:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Karl Berry <karl <at> freefriends.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 27 Mar 2018 17:28:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: bug-coreutils <at> gnu.org
Subject: ls -fA -> still . and ..
Date: Tue, 27 Mar 2018 11:27:28 -0600
$ mkdir foo
$ cd foo
$ \ls -fA
.  ..
$

I rather expected this output to be empty. -f enables -a, fine, but it
seems like the -A should override the -a, since it's specified after?

I guess it has nothing to do with -f in particular.
\ls -aA also shows . and ..; maybe it shouldn't?
Not sure, though ... --thanks, karl.




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 27 Mar 2018 22:07:02 GMT) Full text and rfc822 format available.

Notification sent to Karl Berry <karl <at> freefriends.org>:
bug acknowledged by developer. (Tue, 27 Mar 2018 22:07:02 GMT) Full text and rfc822 format available.

Message #10 received at 30963-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Karl Berry <karl <at> freefriends.org>, 30963-done <at> debbugs.gnu.org
Subject: Re: bug#30963: ls -fA -> still . and ..
Date: Tue, 27 Mar 2018 15:06:19 -0700
[Message part 1 (text/plain, inline)]
On 03/27/2018 10:27 AM, Karl Berry wrote:
> ls -aA also shows . and ..; maybe it shouldn't?

You're right, it shouldn't. This was a bug I introduced in 2004 and I 
think you're the first to report it (!). In my defense, it wasn't 
officially a bug until POSIX.1-2008 came out and specified that -a and 
-A should override each other. Anyway, thanks. I installed the attached 
patch.

[0001-ls-A-now-overrides-a.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#30963; Package coreutils. (Tue, 27 Mar 2018 22:51:02 GMT) Full text and rfc822 format available.

Message #13 received at 30963 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: 30963 <at> debbugs.gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>, 
 Karl Berry <karl <at> freefriends.org>
Subject: Re: bug#30963: ls -fA -> still . and ..
Date: Tue, 27 Mar 2018 15:50:21 -0700
On Tue, Mar 27, 2018 at 3:06 PM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> On 03/27/2018 10:27 AM, Karl Berry wrote:
>>
>> ls -aA also shows . and ..; maybe it shouldn't?
>
> You're right, it shouldn't. This was a bug I introduced in 2004 and I think
> you're the first to report it (!). In my defense, it wasn't officially a bug
> until POSIX.1-2008 came out and specified that -a and -A should override
> each other. Anyway, thanks. I installed the attached patch.

Nice! Thank you both.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 Apr 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.