> 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 "--
> What shell are you using?
Bash.
> In ksh, if I type:
>
> tmux neww 'emacs /usr/s
That's questionable behavior, because how would it handle filenames
containing spaces?
> An alternative would be to write a little shell function to translate:
>
> tmux_neww() {
> tmux neww "$*"
> }
After many (many) years using screen, I've recently started working
with tmux. While for the most part I really like the design, I've run
into a problem with the way the new-window command works. As I
understand it, the way to run a command in a new window is this:
tmux new-window 'command arg