On Sat, Aug 02, 2014 at 07:16:05PM +0000, Bruno Sutic wrote: > > > > --- > > ** [tickets:#146] show-option -q does not set proper exit code** > > **Status:** open > **Created:** Sat Aug 02, 2014 07:16 PM UTC by Bruno Sutic > **Last Updated:** Sat Aug 02, 2014 07:16 PM UTC > **Owner:** nobody > > Steps to reproduce: > > $ tmux show -g foo > unknown option: foo > $ echo $? > 1 # so far so good > $ tmux show -gq foo > $ echo $? > 0 # not good, command exit code should be 1, as in the > previous command
Why? This looks correct to me. And the code agrees; return CMD_RETURN_NORMAL in the case of quiet given. What are you using this for where this is damaging? -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.) ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users