--- 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.
0001-ls-A-now-overrides-a.patch
Description: Text Data
--- End Message ---