mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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 {
|
if input == *name {
|
||||||
// Flags with groups cannot be removed
|
// Flags with groups cannot be removed
|
||||||
// Since the name matches, we can short circuit and don't have to check the other flags.
|
// 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);
|
return ControlFlow::Break(false);
|
||||||
}
|
}
|
||||||
// If there is a group, the bits for that group should be cleared before applying the flag
|
// If there is a group, the bits for that group should be cleared before applying the flag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue