Skip to content
Myr

Also add NetBSD and OpenBSD

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

authored by Tobias Kortkamp · committed by David Peter · parent 4b5e894 · Browse files · 1 file+3 added−2 removed
This commit

State

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

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:src/main.rs+3 added-2 removed
173 unmodified lines
174 ]175 };176177 let cmd: Vec<&str> = if cfg!(unix) {178 if !cfg!(any(target_os = "macos", target_os = "dragonfly", target_os = "freebsd")) {178 if !cfg!(any(target_os = "macos", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd")) {179 // Assume ls is GNU ls180 gnu_ls("ls")181 } else {182 // MacOS, DragonFlyBSD, FreeBSD
16 unmodified lines
199 "-h", // '--human-readable' is not available, '-h' is200 "-d", // '--directory' is not available, but '-d' is201 ];202203 if colored_output {203 if !cfg!(any(target_os = "netbsd", target_os = "openbsd")) && colored_output {204 // -G is not available in NetBSD's and OpenBSD's ls205 cmd.push("-G");206 }207208 cmd
192 unmodified lines