fix(ls): follow the display of GNU ls

This commit is contained in:
Sylvestre Ledru 2020-12-13 12:08:54 +01:00
parent 8a1628cf89
commit ba126afe54

View file

@ -367,7 +367,7 @@ fn display_items(items: &[PathBuf], strip: Option<&Path>, options: &getopts::Mat
match md { match md {
Err(e) => { Err(e) => {
let filename = get_file_name(i, strip); let filename = get_file_name(i, strip);
show_error!("{}: {}", filename, e); show_error!("'{}': {}", filename, e);
None None
} }
Ok(md) => Some(display_file_name(&i, strip, &md, options)), Ok(md) => Some(display_file_name(&i, strip, &md, options)),