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: Karl Berry <karl <at> freefriends.org>
Subject: bug#30963: closed (Re: bug#30963: ls -fA -> still . and ..)
Date: Tue, 27 Mar 2018 22:07:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#30963: ls -fA -> still . and ..

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 30963 <at> debbugs.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: 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 3 (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)]
[Message part 5 (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.



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.