On 4 February 2014 07:12, J Raynor <jxray...@gmail.com> wrote:
> If the goal is to get new-session to take more than 1 arg so that
> commands don't need to be quoted, isn't using "--" the wrong way to
> go?  I thought getopt consumes "--", so that cmd_new_session_exec()

No, this is why "--" exists, and on BSD, getopt() does not do "--"
scanning, unlike on Linux.

> would never see it, and so couldn't alter its behavior.  Wouldn't you
> have to modify getopt() or args_parse() to pass "--" along to
> new-session?

No, the command itself would scan for this, and then stop, asssuming
everything after it was to be passed straight through.

-- Thomas Adam

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to