From b985d48aada8268be0e0b4779bd9478e48cbcd59 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Fri, 16 Oct 2026 21:30:18 +0900 Subject: [PATCH] stty: drop incorrect flags for apple target --- src/uu/stty/src/flags.rs | 119 ++++++--------------------------------- 1 file changed, 17 insertions(+), 102 deletions(-) diff --git a/src/uu/stty/src/flags.rs b/src/uu/stty/src/flags.rs index d25936628d2..02140cebdea 100644 --- a/src/uu/stty/src/flags.rs +++ b/src/uu/stty/src/flags.rs @@ -97,124 +97,39 @@ pub const OUTPUT_FLAGS: &[Flag] = &[ Flag::new("onlcr", O::ONLCR).sane(), Flag::new("onocr", O::ONOCR), Flag::new("onlret", O::ONLRET), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new("ofdel", O::OFDEL), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("nl0", O::NL0, O::NLDLY).sane(), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("nl1", O::NL1, O::NLDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("cr0", O::CR0, O::CRDLY).sane(), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("cr1", O::CR1, O::CRDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("cr2", O::CR2, O::CRDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("cr3", O::CR3, O::CRDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("tab0", O::TAB0, O::TABDLY).sane(), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("tab1", O::TAB1, O::TABDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("tab2", O::TAB2, O::TABDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("tab3", O::TAB3, O::TABDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("bs0", O::BS0, O::BSDLY).sane(), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("bs1", O::BS1, O::BSDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("vt0", O::VT0, O::VTDLY).sane(), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("vt1", O::VT1, O::VTDLY), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("ff0", O::FF0, O::FFDLY).sane(), - #[cfg(any( - target_vendor = "apple", - target_os = "android", - target_os = "haiku", - target_os = "linux" - ))] + #[cfg(any(target_os = "android", target_os = "haiku", target_os = "linux"))] Flag::new_grouped("ff1", O::FF1, O::FFDLY), ];