-
-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply sort order to files in line and grid outputs #756
Conversation
Hi, do you think you can fix the merge conflicts so that I can merge your PR? |
577986f
to
c8ed693
Compare
Done. Does it look ok now? |
Your changes makes some existing extended tests fail, and the ones you added don’t work either on my computer. Also you mistyped failing tests
I don’t know why some tests started failing, but I believe the one you introduced are failing because the output you got was from executing exa in a different directory or with an alias. |
Sorry about that, I remember I was having some trouble running the extended tests locally so I was hoping the CI could do it for me. I'll try to fix them soon. |
Ok, I believe I fixed the new tests I added. The problem was As for the other tests that I didn't write, the problem is they're relying on bash's glob sort order, but my change runs everything through
|
Hi, The reason you discovered that the extended tests are failing is correct — those tests require a large list of files with directories, and while the purpose of those tests isn't to test the arguments' sort order, it inadvertently tested it anyway. (At least it was commented.) I'm actually surprised that there was no existing text that explicitly tests this behaviour. Maybe the failing tests were the tests, and their purpose got lost to time. Anyway, I'm going to merge this PR and go with option (2), changing the behaviour, then fix the tests to support the new defined behaviour. I thought about it for a little while and realised that no matter which behaviour we pick (whether to sort or to not sort), exa might do something unexpected:
We could try to be smart and apply some heuristic, but I think that introduces more problems than it solves. Plus, I checked the GNU and BSD Thanks! |
Fixes #404