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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#30963: closed (ls -fA -> still . and ..)
Date: Tue, 27 Mar 2018 22:07:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 27 Mar 2018 15:06:19 -0700
with message-id <2b1ac1c7-a2e1-2e4f-6ec7-c228179c7d31 <at> cs.ucla.edu>
and subject line Re: bug#30963: ls -fA -> still . and ..
has caused the debbugs.gnu.org bug report #30963,
regarding ls -fA -> still . and ..
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
30963: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30963
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.


[Message part 3 (message/rfc822, inline)]
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 4 (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)]

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.