emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#30963: closed (ls -fA -> still . and ..)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#30963: closed (ls -fA -> still . and ..)
Date: Tue, 27 Mar 2018 22:07:02 +0000

Your message dated Tue, 27 Mar 2018 15:06:19 -0700
with message-id <address@hidden>
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
address@hidden)


-- 
30963: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30963
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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.



--- End Message ---
--- Begin Message --- Subject: Re: bug#30963: ls -fA -> still . and .. Date: Tue, 27 Mar 2018 15:06:19 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
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.

Attachment: 0001-ls-A-now-overrides-a.patch
Description: Text Data


--- End Message ---

reply via email to

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