Skip to content

Commit

Permalink
Support --list-details on more platforms
Browse files Browse the repository at this point in the history
Implement `--list-details` by using short options for `ls` to support more platforms (like BusyBox)

closes #783
  • Loading branch information
tsoutsman committed Aug 10, 2021
1 parent 115ae93 commit 6a18b36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
};
Expand Down

0 comments on commit 6a18b36

Please sign in to comment.