Chas. Owens wrote:

> On Sun, May 29, 2011 at 04:23, Helmut Schneider <jumpe...@gmx.de>
> wrote:  snip
> > I have a script, more a wrapper, that checks for screen and sudo
> > and if neither screen or sudo are active the script is restarted
> > using screen and/or sudo:
>
> snip
> 
> I have found a setup like this to work:

Yes, but this only works with bash. I require a portable solution.
Unfortunatly bashisms aren't and probably will never be.

>               for arg in "$@"; do
>                       command="$command '$arg'"
>               done

If you use bash use arrays.

Thanks anyway.


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to