diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs index 21aecfd27ed..24aa3068b86 100644 --- a/src/uu/ls/src/ls.rs +++ b/src/uu/ls/src/ls.rs @@ -2675,20 +2675,10 @@ fn display_grid( .map(|s| s.to_string_lossy().into_owned()) .collect(); - // Determine whether to use tabs for separation based on whether any entry ends with '/'. - // If any entry ends with '/', it indicates that the -F flag is likely used to classify directories. - let use_tabs = names.iter().any(|name| name.ends_with('/')); - - let filling = if use_tabs { - Filling::Text("\t".to_string()) - } else { - Filling::Spaces(2) - }; - let grid = Grid::new( names, GridOptions { - filling, + filling: Filling::Spaces(2), direction, width: width as usize, }, diff --git a/tests/by-util/test_ls.rs b/tests/by-util/test_ls.rs index 444d5b8d810..8d8f18af087 100644 --- a/tests/by-util/test_ls.rs +++ b/tests/by-util/test_ls.rs @@ -4786,7 +4786,7 @@ fn test_ls_subdired_complex() { } #[test] -fn test_ls_cf_output_should_be_delimited_by_tab() { +fn test_ls_cf_output_should_be_delimited_by_spaces() { let (at, mut ucmd) = at_and_ucmd!(); at.mkdir("e"); @@ -4795,7 +4795,7 @@ fn test_ls_cf_output_should_be_delimited_by_tab() { ucmd.args(&["-CF", "e"]) .succeeds() - .stdout_is("a2345/\tb/\n"); + .stdout_is("a2345/ b/\n"); } #[cfg(all(unix, feature = "dd"))]