-
Notifications
You must be signed in to change notification settings - Fork 113
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
File glob behavior of --sort=changed #462
Comments
What OS and version is this on? I don't see any problems on MacOS and Debian with Perhaps you want to use |
Note that the |
I am on Linux
I have verified both
|
Also on Ubuntu:
The
The ugrep did not
|
Okay, with further tries, it showed that if I specified
|
Subdirectories are sorted separately, the ugrep man page says "Subdirectories are sorted and displayed after matching files.". Furthermore, files specified on the command line will NOT be sorted but rather presented in the order specified on the command line as the man page says. Therefore, sorting applies to recursive search with globs (options |
If multiple files contain the pattern, I expected the results were sorted by chronological order, e.g., the log files normally were rotated by time, but ugrep results with
--sort=changed
seems not honor the flag or I mis-used the flag?Above results were from 7.2.0 version:
The file stat data:
and I need to do with the tricky part
$(ls -rt ...)
in command line for expected results:This may be not a ugrep bug but I mis-used it, please correct me, thanks.
The text was updated successfully, but these errors were encountered: