From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1InxyR-0000pf-8Q for garchives@archives.gentoo.org; Fri, 02 Nov 2007 14:58:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id lA2Euoxm032618; Fri, 2 Nov 2007 14:56:50 GMT Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id lA2EqAwb024616 for ; Fri, 2 Nov 2007 14:52:10 GMT Received: from [10.73.1.31] (uberlaptop.marples.name [10.73.1.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id F0D3B19010B for ; Fri, 2 Nov 2007 14:52:09 +0000 (GMT) Subject: Re: [gentoo-dev] More general interface to use flags From: Roy Marples To: gentoo-dev@lists.gentoo.org In-Reply-To: <472B33D7.7070906@gentoo.org> References: <472B29B9.50002@gentoo.org> <1194012241.16055.11.camel@uberlaptop.marples.name> <472B33D7.7070906@gentoo.org> Content-Type: text/plain Organization: Gentoo Date: Fri, 02 Nov 2007 14:52:08 +0000 Message-Id: <1194015128.16055.15.camel@uberlaptop.marples.name> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 9dc2c8c9-fbff-428e-adfd-584396f3dd20 X-Archives-Hash: 6782c0159436f866b636793cec6a80ee On Fri, 2007-11-02 at 15:27 +0100, Marijn Schouten (hkBst) wrote: > > ifz() { > [[ $1 = 0 ]] && echo $2 || echo $3 > } And that could be written as [ "$1" = 0 ] && echo "$2" || echo "$3" Thanks Roy -- gentoo-dev@gentoo.org mailing list