From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46 invoked by alias); 15 Aug 2011 01:11:24 -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: 16233 Received: (qmail 6635 invoked from network); 15 Aug 2011 01:11:14 -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: <110814181108.ZM20034@torch.brasslantern.com> Date: Sun, 14 Aug 2011 18:11:08 -0700 In-reply-to: Comments: In reply to Micah Elliott "Re: Idiom for booleans" (Aug 12, 10:26pm) References: <110812200942.ZM8287@torch.brasslantern.com> 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, 10:26pm, Micah Elliott wrote: } Subject: Re: Idiom for booleans } } > On Aug 12, 5:24pm, Micah Elliott wrote: } > } } > } % (( 0 )) } > } ((: command not found } } > This has to be something in your configuration. Try it with zsh -f ? } } . /etc/zsh_command_not_found } } That's a pretty handy utility (that I would expect to be popular), but } for now I'm going to live without it. I see it's a problem on the last } few Ubuntu releases, and I can't believe other people aren't seeing } the problem. I've had a Ubuntu laptop for a couple of years now and never noticed this utility (not that I'd have used it if I had) so it's not all that surprising to me that it isn't a widespread problem. Ironically, the very first line of the precmd function defined by /etc/zsh_command_not_found begins with (($?)) && ... Obviously this implementation predates zsh introducing its own hook for command-not-found. It could have been done correctly, though, by the simple expedient of (($? == 127)) && ...