我腳本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上嘗試它,事情會按預期工作。
任何想法?
謝謝,