3

I have a program that invokes the say command line utility on my mac that stopped working after I upgraded to macOS Sierra.

When I try to run the /usr/bin/say command from the command line, it just hangs (requires a ctrl+c).

If I run as root, it works just fine. I can’t figure out what changed in Sierra that would cause this odd behavior.

Giacomo1968
  • 53,069
  • 19
  • 162
  • 212
simianarmy
  • 141
  • 5
  • 1
    It turned out that it was a compatibility issue with tmux. I'm still unclear why but the command runs normally when run outside of a tmux session. – simianarmy Nov 29 '16 at 16:00
  • Your comment “It turned out that it was a compatibility issue with tmux. I'm still unclear why but the command runs normally when run outside of a tmux session.” should be posted as an answer. – Giacomo1968 Nov 29 '16 at 16:20

2 Answers2

1

It was a compatibility issue with tmux. Works as expected outside of tmux sessions.

simianarmy
  • 141
  • 5
1

Make sure the reattach-to-user-namespace program installed and add lines like the following to your ~/.tmux.conf, when you run "say" utility inside of a tmux session.

brew install reattach-to-user-namespace

# In .tmux.conf:
set-option -g default-command "reattach-to-user-namespace -l zsh"

# To kill your existing tmux server (and everything running “inside” it!):
tmux kill-server

Some useful links:
1. Mac "say" not working in tmux session - https://github.com/tmux/tmux/issues/716
2. tmux-MacOSX-pasteboard - https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

Snger
  • 111
  • 4