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:
Klim Tsoutsman 2021-08-11 04:39:10 +10:00 committed by GitHub
parent 115ae93df9
commit 6a18b36037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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,
]
};