On Tue, Feb 21, 2012 at 05:53:16PM +0100, Uli Schlachter wrote: > > - local keygrabber = args.keygrabber or false > > + local keygrabber = args.keygrabber or true > > Let's assume that args.keygrabber is false. Now we have: > > local keygrabber = args.keygrabber or true > local keygrabber = false or true > local keygrabber = true > > Something "or true" will always be true.
Indeed, the 'foo or bar' or 'foo and bar or baz' only works when you're not dealing with a desired falsehood on the left of the 'or' local keygrabber = (args.keygrabber == nil) and true or args.keygrabber That might work better for you D. -- Daniel Silverstone http://www.digital-scurf.org/ PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69 -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.