我脚本TMUX 1.4版本,并试图打开新窗口,如下所示:TMUX新窗口不显示命令输出
tmux new-session -d
tmux new-window ifconfig
tmux list-windows
0: bash [80x23] [layout b85e,80x23,0,0]
1: ifconfig [80x23] [layout b85e,80x23,0,0] (active)
tmux attach
... no output
我希望使用ifconfig的输出出现在窗口,但是最出现。我的〜/ .tmux.conf文件中也有set-option -g set-remain-on-exit on
行。
如果我运行一些其他的命令,有时候输出显示出来:
tmux new-window "curl www.google.com"
tmux attach
... lots of output
通过尝试不同的命令,好像都显示很长的输出。短输出不会出现。
这只发生在Linux中。如果我在使用相同tmux版本构建的Mac OS X上尝试它,事情会按预期工作。
任何想法?
谢谢,