On 4 February 2014 08:14, J Raynor <jxray...@gmail.com> wrote: > I don't see how the command can scan for it when it appears to be gone > before the command's _exec function runs. For now I'll assume I've > confused the order in which things happen and take another look.
I'm not sure where you're confused---perhaps that's my fault for misinterpreting you. But really it's simple. getopt() returns -1 if it encounters "--" signalling the end of argument list. The problem you might face is when each command receives its own commands, but you already have args->argv anyway, so there shouldn't be a problem, you just need to ensure the args handling doesn't tokenise it too much. If you want I can send you a rough diff of how I think this should look? -- 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