Skip to content

gh repo garden does not work on macOS Big Sur #4209

@cravend

Description

@cravend

When running gh repo garden on macOS Big Sur, I get an error:

getting TTY settings failed: stty: when specifying an output style, modes may not be set

exit status 1

I believe the issue is with the following lines. Manually running stty -f /dev/tty -g gives me the same error, while stty -F /dev/tty -g prints the terminal device as expected.

sttyFileArg := "-F"
if runtime.GOOS == "darwin" {
sttyFileArg = "-f"
}
oldTTYCommand := exec.Command("stty", sttyFileArg, "/dev/tty", "-g")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions