On Wed, Dec 15, 2010 at 02:44:56PM -0500, Lars Kellogg-Stedman wrote:
> > What shell are you using?
> 
> Bash.
> 
> > In ksh, if I type:
> >
> >        tmux neww 'emacs /usr/s<TAB>
> 
> That's questionable behavior, because how would it handle filenames
> containing spaces?

You have to intervene and edit the filename, of course, but so what? It
works in the majority of cases which are without spaces.

> 
> > An alternative would be to write a little shell function to translate:
> >
> > tmux_neww() {
> >        tmux neww "$*"
> > }
> 
> This still suffers from the same problem...trying to preserve
> whitespace through multiple levels of quoting is challenging, at best.

I can't say I've ever had any problems but if you say so.

>  Better if tmux would simple accept a tokenized command line from the
> shell.

Someone suggested treating the rest of the command line as one argument
if -- is encountered, I'd be happy with that.

------------------------------------------------------------------------------
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

Reply via email to