Skip to content
Myr

Do not show output of 'gls --version'

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

authored by sharkdp · committed by David Peter · parent 2685728 · Browse files · 1 file+7 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+7 added−2 removed

  • other:+7 added−2 removed

1 file+7 added−2 removed

modified:src/main.rs+7 added-2 removed
174 unmodified lines
175 &color_arg,176 ]177 } else {178 // MacOS179 use std::process::Command;179 use std::process::{Command, Stdio};180181 // Use GNU ls, if available182 let gnu_ls_exists = Command::new("gls").arg("--version").status().is_ok();182 let gnu_ls_exists = Command::new("gls")183 .arg("--version")184 .stdout(Stdio::null())185 .stderr(Stdio::null())186 .status()187 .is_ok();188189 if gnu_ls_exists {190 vec![191 "gls",
192 unmodified lines