1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 02:57:44 +00:00

wc: fix escaping

GNU wc only escapes file names with newlines in them.
This commit is contained in:
Justin Tracey 2024-12-23 00:14:15 -05:00
parent d3db8dc29f
commit ff8a31e835
No known key found for this signature in database
GPG key ID: 62B84F5ABDDDCE54
4 changed files with 51 additions and 14 deletions

View file

@ -33,7 +33,9 @@ pub fn main() {
#[allow(clippy::match_same_arms)]
match krate.as_ref() {
"default" | "macos" | "unix" | "windows" | "selinux" | "zip" => continue, // common/standard feature names
"nightly" | "test_unimplemented" | "expensive_tests" => continue, // crate-local custom features
"nightly" | "test_unimplemented" | "expensive_tests" | "test_risky_names" => {
continue
} // crate-local custom features
"uudoc" => continue, // is not a utility
"test" => continue, // over-ridden with 'uu_test' to avoid collision with rust core crate 'test'
s if s.starts_with(FEATURE_PREFIX) => continue, // crate feature sets