1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-17 10:41:03 +00:00

ls: Add missing quote with --quoting-style=shell-escape

Should fix GNU: tests/ls/symlink-quote.sh
This commit is contained in:
Sylvestre Ledru 2022-03-26 11:30:07 +01:00
parent 98376d8fd5
commit bbee22bb1c
2 changed files with 42 additions and 1 deletions

View file

@ -2568,7 +2568,8 @@ fn display_file_name(
}
} else {
// If no coloring is required, we just use target as is.
name.push_str(&target.to_string_lossy());
// Apply the right quoting
name.push_str(&escape_name(&target.as_os_str(), &config.quoting_style));
}
}
}