Skip to content

stty: working on stdin vs. ctty #8848

@egmontkob

Description

@egmontkob

stty's manual page says

--file [...] open and use the specified DEVICE instead of stdin

The "instead of stdin" part is not true: by default it doesn't work on stdin, it works on the controlling terminal.

Therefore redirection like stty ... < /dev/pts/N, which works with GNU Coreutils stty, doesn't work here.

Of course, --file is available as a substitute. Nevertheless, unless there's a reason I can't see, I recommend to modify the behavior to match the manual (and not the other way around), that way redirection with < would also work for those who got used to this behavior.

(version 0.2.2 as shipped by Ubuntu 25.10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions