mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
stty: fix setting grouped flags
This commit is contained in:
parent
96ea772016
commit
eac88022b2
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ fn apply_flag<T: TermiosFlag>(
|
|||
if input == *name {
|
||||
// Flags with groups cannot be removed
|
||||
// Since the name matches, we can short circuit and don't have to check the other flags.
|
||||
if remove || group.is_some() {
|
||||
if remove && group.is_some() {
|
||||
return ControlFlow::Break(false);
|
||||
}
|
||||
// If there is a group, the bits for that group should be cleared before applying the flag
|
||||
|
|
Loading…
Reference in a new issue