Hello! Sorry my bad English. The --reverse key does not work for ls, it works together with the -t key. Reproducible: Always Steps to Reproduce: 1.touch 1.test ; touch 2.test ; touch 3.test ; touch 4.test 2.ls -r 3.ls -rt Actual Results: 4.test 3.test 2.test 1.test Expected Results: 1.test 2.test 3.test 4.test
Created attachment 860097 [details] emerge.info
I tried with same version but can't reproduce. Maybe try running `ls --version` just to be sure it's not running a different ls? Also, what filesystem is this on? (I don't think it should be related, but just in case) For me: $ touch 1.test ; touch 2.test ; touch 3.test ; touch 4.test $ ls 1.test 2.test 3.test 4.test $ ls -r 4.test 3.test 2.test 1.test $ ls --version ls (GNU coreutils) 9.1 Packaged by Gentoo (9.1-r2 (p0))
Also did you get this backward? The former is in reverse, so it's normal. Actual Results: 4.test 3.test 2.test 1.test Expected Results: 1.test 2.test 3.test 4.test
Sorry, I made a mistake. I didn't take into account that the key in aliases is -U. Without an alias, it worked as it should. I'm very, very sorry. The bug can be closed.
No worries, thank you for coming back and explaining :)