> Someone suggested treating the rest of the command line as one argument > if -- is encountered, I'd be happy with that.
Why require "--"? Looking at the man page: new-window [-adk] [-n window-name] [-t target-window] [shell-command] ...why is it necessary to terminate the arguments with "--"? That is, I'm not sure I see a situation in which there is any ambiguity as to which arguments belong to new-window and which belong to the external command. If you simply stop processing options at the first non-option argument, you're all set (and then treat all remaining arguments as the command). Ideally, you'd preserve the shell's tokenization of the command line, rather than concatenating everything into a single string first. ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users