-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ls: align --ignore behavior with that of GNU ls #3803
Conversation
I guess you saw
|
Interesting! When I was working on it I didn't get these failures, then when I saw this I tried again and saw the failures, but after checking out the same commit again the failures fixed themselves. I rebased on the upstream, here's another try. |
fails again :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs tests fixes
Yup I'll work on it! |
thanks! |
These tests are tricky for windows, because we do the argument expansion usually done by the unix shell ourselves for Windows. Take this test for example: scene
.ucmd()
.arg("--ignore")
.arg("[^a]*")
.succeeds()
.stdout_contains("apple")
.stdout_does_not_contain("boy"); Here's what I think happens: the |
Could you please fix the conflicts? thanks |
I'm a little busy these free weeks but I'll definitely get to this |
Just rebased, letting tests run to see how it goes now. |
@tertsdiepraam is right. Was digging into this a little - in the tests, taking
I can dig a little into why this expansion happens. Any tips? |
@tertsdiepraam Could you please point me to the part of the code that does shell expansion on Windows? |
Sure! There's a |
Would you suggest removing that expansion? |
I'm not sure to he honest. It's quite convenient to have on Windows and gives the "unsurprising behaviour" in many cases. At least within the context of this PR, we should just work around it, but feel free to open an issue to discuss the expansion. |
Indeed, removing the glob expansion with this patch allows all
I'll disable these tests on windows and create a new issue to discuss the expansion. |
41df419
to
5e4f022
Compare
Nice: |
Fixes #3753