Skip to content
Myr

Support --list-details on more platforms

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Implement `--list-details` by using short options for `ls` to support more platforms (like BusyBox) closes #783

authored by Klim Tsoutsman · committed by GitHub · parent 115ae93 · Browse files · 2 files+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−3 removed

  • other:+6 added−3 removed

2 files+6 added−3 removed

modified:src/main.rs+5 added-3 removed
208 unmodified lines
209 let color_arg = ["--color=", color].concat();210211 #[allow(unused)]212 let gnu_ls = |command_name| {213 // Note: we use short options here (instead of --long-options) to support more214 // platforms (like BusyBox).215 vec![216 command_name,215 "-l", // long listing format216 "--human-readable", // human readable file sizes217 "--directory", // list directories themselves, not their contents217 "-l", // long listing format218 "-h", // human readable file sizes219 "-d", // list directories themselves, not their contents220 &color_arg,221 ]222 };223
270 unmodified lines
modified:CHANGELOG.md+1 added
7 unmodified lines
8- fd cannot search files under a RAM disk, see #7529- fd doesn't show substituted drive on Windows, see #36510- Properly handle write errors to devices that are full, see #73711- Use local time zone for time functions (`--change-newer-than`, `--change-older-than`), see #631 (@jacobmischka)12- Support `--list-details` on more platforms (like BusyBox), see #7831314## Changes1516- Apply custom `--path-separator` to commands run with `--exec(-batch)` and `--list-details`, see #697 (@aswild)
509 unmodified lines