mirror of
https://github.com/sharkdp/fd
synced 2024-10-02 22:13:31 +00:00
Support --list-details on more platforms
Implement `--list-details` by using short options for `ls` to support more platforms (like BusyBox) closes #783
This commit is contained in:
parent
115ae93df9
commit
6a18b36037
|
@ -9,6 +9,7 @@
|
|||
- fd doesn't show substituted drive on Windows, see #365
|
||||
- Properly handle write errors to devices that are full, see #737
|
||||
- Use local time zone for time functions (`--change-newer-than`, `--change-older-than`), see #631 (@jacobmischka)
|
||||
- Support `--list-details` on more platforms (like BusyBox), see #783
|
||||
|
||||
## Changes
|
||||
|
||||
|
|
|
@ -210,11 +210,13 @@ fn run() -> Result<ExitCode> {
|
|||
|
||||
#[allow(unused)]
|
||||
let gnu_ls = |command_name| {
|
||||
// Note: we use short options here (instead of --long-options) to support more
|
||||
// platforms (like BusyBox).
|
||||
vec![
|
||||
command_name,
|
||||
"-l", // long listing format
|
||||
"--human-readable", // human readable file sizes
|
||||
"--directory", // list directories themselves, not their contents
|
||||
"-l", // long listing format
|
||||
"-h", // human readable file sizes
|
||||
"-d", // list directories themselves, not their contents
|
||||
&color_arg,
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue