Skip to content

(macos) tmux + brew gnu coreutils combination does not work with 'selecta' #103

@vimkim

Description

@vimkim

Thx for this awesome plugin.

I found a really mysterious bug. It works well with either tmux or gnu coreutils but not with both. Specifically,

  1. 'Selecta' works well inside tmux if I comment out the following line from my .zshrc:
    export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
  2. 'Selecta' works well outside tmux no matter if I comment out the above line or not.
  3. 'Selecta' does not work if I use both tmux and gnu tools.
    The error message is the following:
Traceback (most recent call last):
        9: from /usr/local/bin/selecta:839:in `<main>'
        8: from /usr/local/bin/selecta:45:in `main'
        7: from /usr/local/bin/selecta:584:in `with_screen'
        6: from /usr/local/bin/selecta:801:in `with_tty'
        5: from /usr/local/bin/selecta:591:in `block in with_screen'
        4: from /usr/local/bin/selecta:613:in `restore_tty'
        3: from /usr/local/bin/selecta:821:in `stty'
        2: from /usr/local/bin/selecta:828:in `command'
        1: from /usr/local/bin/selecta:828:in `pipe'
/usr/local/bin/selecta:831:in `block in command': Command failed: "stty 6902:3:4b00:5cb:4:ff:ff:7f:17:15:12:0:3:1c:1a:19:11:13:16:f:1:0:14:0" (RuntimeError)

so yeah, I think it might be because of the incompatibilities between /bin/stty and gnu stty or else.

My environment:

  • macOS High Sierra 10.13.4
  • tmux 2.7
  • brew coreutils 8.30
  • zsh 5.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions