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

2018-03-27 Thread Jim Meyering
On Tue, Mar 27, 2018 at 3:06 PM, Paul Eggert 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

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

2018-03-27 Thread Paul Eggert
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

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

2018-03-27 Thread Karl Berry
$ 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,