From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18092 invoked by alias); 13 Aug 2011 03:10:08 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16207 Received: (qmail 10588 invoked from network); 13 Aug 2011 03:10:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110812200942.ZM8287@torch.brasslantern.com> Date: Fri, 12 Aug 2011 20:09:42 -0700 In-reply-to: Comments: In reply to Micah Elliott "Idiom for booleans" (Aug 12, 5:24pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Idiom for booleans MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Aug 12, 5:24pm, Micah Elliott wrote: } } % (( 0 )) } ((: command not found } % (( 1 )) # ok This has to be something in your configuration. Try it with zsh -f ? torch% (( 0 )) torch% (( math> )) torch% (( 0 )) || echo nope nope torch% This one I'm not sure is intentional: torch% (( )) || echo oops oops torch% } I'm trying to figure out if the $+ expansion, as in ${+param}, is } worth making use of. What idiom do you use for it? I could see it as a } boolean for testing flags. Yes, that's a common usage.