diff --git a/src/uu/dmesg/src/dmesg.rs b/src/uu/dmesg/src/dmesg.rs index 2ad6427..8f53085 100644 --- a/src/uu/dmesg/src/dmesg.rs +++ b/src/uu/dmesg/src/dmesg.rs @@ -493,7 +493,9 @@ impl TryFrom for Facility { } fn remove_enclosing_quotes(value: &str) -> &str { - if value.starts_with('"') && value.ends_with('"') { + if (value.starts_with('"') || value.starts_with('\'')) + && (value.ends_with('"') || value.ends_with('\'')) + { &value[1..value.len() - 1] } else { value