-
-
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 --dired: adjust our code after GNU v9.5 #6144
Conversation
GNU testsuite comparison:
|
Did you see that |
GNU testsuite comparison:
|
GNU testsuite comparison:
|
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.
Implements and tests exactly what's on the tin. Awesome!
GNU testsuite comparison:
|
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.
There's a bit of a clap issue again here, I believe (but I don't have 9.5 installed yet so I can't check, I'll verify soon). The problem is that we are forcing the long format after all arguments have been processed by clap, whereas even the new GNU version, does it as soon as --dired
is encountered. Hence, we'll probably be incompatible in this case:
ls --dired --format=vertical
Because GNU still overrides it but we don't. Not necessarity a super big problem, but something to be aware of. And please do correct me if I'm interpreting this wrong.
GNU testsuite comparison:
|
Manages cases like: $ ls -R --dired --hyperlink a2 will show hyperlink $ ls -R --hyperlink --dired a2 won't
GNU testsuite comparison:
|
GNU testsuite comparison:
|
Closes: uutils#6488 Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
GNU testsuite comparison:
|
f007727
to
572485c
Compare
I tried with https://docs.rs/clap/latest/clap/struct.ArgMatches.html#method.index_of but it doesn't work with the setTrue |
GNU testsuite comparison:
|
…want to see the long format Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
GNU testsuite comparison:
|
1 similar comment
GNU testsuite comparison:
|
Great, good job :) |
regressed because of #6139