Looks like you are using a bash extension and the copy-pipe command will be run with /bin/sh. Try doing
copy-pipe "bash -c 'mycommand'" On Mon, Mar 25, 2013 at 02:35:37PM -0400, James Jong wrote: > The following command works well in the command line and copies a string > to two X-window targets: > > echo "Hello world" | tee >(xclip -i -selection primary) >(xclip -i > -selection clipboard) >/dev/null > > The following two tmux binding commands work well too: > > bind-key -n -t emacs-copy M-w copy-pipe "xclip -i -selection primary" > > > bind-key -n -t emacs-copy M-w copy-pipe "xclip -i -selection clipboard" > > But the following tmux binding command which is supposed to copy a selection > to > two targets doesn't: > > > bind-key -n -t emacs-copy M-w copy-pipe "tee >(xclip -i -selection > primary) >(xclip -i -selection clipboard) >/dev/null" > Why? > More generally, is there a better way to copy a string to two X window > targets? > James > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users