Dear mailinglist,

I tried to use the zsh double star "**" (recursive match) in a tmux  
command string, but it does not match correctly. The same command +  
"**" works without tmux. Any idea why this doesn't work? Which shell  
is used to interpret the command: sh, default-shell, $SHELL? My guess  
is "sh".

<code>
cd /tmp
mkdir -p features/support
touch features/support/env.rb
touch features/feature_abc.feature
touch features/feature_def.feature
tmux set-option -g default-shell /bin/zsh\; new-session "vim -p  
features/**/*.{rb,feature}"\; attach
</code>

If I wrap the command in a "second" zsh it works as expected

<code>
cd /tmp
mkdir -p features/support
touch features/support/env.rb
touch features/feature_abc.feature
touch features/feature_def.feature
tmux set-option -g default-shell /bin/zsh\; new-session "zsh -c 'vim  
-p features/**/*.{rb,feature}'"\; attach
</code>

BTW: It tried the following as well, but that doesn't change the behaviour.
- no zsh config (.zshrc)
- no tmux config (.tmux.conf)
- place "set-option -g default-shell /bin/zsh" in .tmux.conf
- place "set-option -g default-command /bin/zsh" in .tmux.conf
- strace was not very helpfull, it failed with "create session failed:  
vim -p features/**/*.{rb,feature}: Exec format error"

My environment
- arch linux x86_64
- zsh 4.3.17 (x86_64-unknown-linux-gnu)
- tmux 1.6


Thanks.

Best regards,
Dennis



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to