On Sat, Jun 11, 2011 at 17:16, Helmut Schneider <jumpe...@gmx.de> wrote: > 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. snip
As far as I can see, the only bash specific things in that script are the function definition, source, and [[ ]] instead of [ ]. Just replace "function tmuxify" with "tmuxify()", source with . and [[ ]] with []. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. ------------------------------------------------------------------------------ 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