On 05/28/2011 03:28 PM, Helmut Schneider wrote:

> While from a shell you can put single quotation marks around the comman when
> you e.g. put your script into an alias or call it from another script there
> is/seems no way to do that successfully.

Your sentence here doesn't make much sense to me, but I'm going to guess 
that you mean to say that while you can put single quotes around the 
arguments in an interactive shell, you can't do that from an alias or 
"another script".

Which is obviously untrue. It sounds to me like you need to learn to use 
quotes in your shell a bit better. Here are some examples that should 
demonstrate how you might accomplish what you're after.

tmux new '/usr/local/bin/patch_all.sh -H "host1 host2
host3"'

alias foo="tmux new '/usr/local/bin/patch_all.sh -H \"host1 host2
host3\"'

   or

alias foo='tmux new '\''/usr/local/bin/patch_all.sh -H "host1 host2
host3"'\'

(Please excuse the line-wrapping.)

-- 
Micah J. Cowan
http://micah.cowan.name/

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to