From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10304 invoked by alias); 13 Aug 2011 05:27:34 -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: 16208 Received: (qmail 22079 invoked from network); 13 Aug 2011 05:27:22 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at micahelliott.com does not designate permitted sender hosts) MIME-Version: 1.0 Sender: mde@micahelliott.com In-Reply-To: <110812200942.ZM8287@torch.brasslantern.com> References: <110812200942.ZM8287@torch.brasslantern.com> From: Micah Elliott Date: Fri, 12 Aug 2011 22:26:53 -0700 X-Google-Sender-Auth: ThNVWzdkY547IvWGDpd-_nABIqk Message-ID: Subject: Re: Idiom for booleans To: Bart Schaefer , zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > On Aug 12, =C2=A05:24pm, Micah Elliott wrote: > } > } =C2=A0 % (( 0 )) > } =C2=A0 ((: command not found > This has to be something in your configuration. =C2=A0Try it with zsh -f = ? Sweet relief! Thanks Bart!! Disabling my setup with -f did the trick. Which led me on a goosechase ending in this line in my setup: . /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. So when I do: % (( )) ((: command not found Which ends up about the same as (except zsh was never actually complaining!= ): % dfjdkjfkdjf zsh: command not found: dfjdkjfkdjf dfjdkjfkdjf: command not found It eventually ends up calling: /usr/bin/python /usr/lib/command-not-found -- "((" So the buggy (or just bash-aware) python utility isn't going to work with z= sh. I'm also happy to see that by disabling command-not-found I can now do this without funny "command not found" messages: % foo=3Dbar ls not_a_file # with command-not-found enabled ls: cannot access not_a_file: No such file or directory foo=3Dbar: command not found <-- UGH!! I'll plan to file bugs on these for zsh. http://goo.gl/alnwN --=20 twitter:@Membean=C2=A0 |=C2=A0 email:Micah@Membean.com=C2=A0 |=C2=A0 http:/= /Membean.com Remember your words with Membean! Three free days of learning!