Skip to content

Regression: stty -echo in scripts no longer works #836

@vmihalko

Description

@vmihalko

Description:

In ksh versions later than v1.0.0-beta.1, setting stty -echo in a script no longer works as expected. This issue did not occur in earlier versions.

Bisected Commit:

I performed a git bisect between the last known good tag (reboot) and the first known bad tag (v1.0.0-beta.1). The regression was introduced in commit 41ebb55a3a9133f58cf3cc1c47e83bb5dc11404e.

Reproducer:

Create a script e.g. repro.ksh with the following contents:

#!/bin/ksh
read a
stty -echo
read b

Run the script:

ksh repro.ksh
Expected Behavior:
  • Input for a should be visible.
  • Input for b should not be echoed to the terminal.
Actual Behavior:
  • Input for a is visible as expected.
  • Input for b is also visible, despite stty -echo being set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions