Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Idiom for booleans
- X-seq: zsh-users 16211
- From: Štěpán Němec <stepnem@xxxxxxxxx>
- To: Micah Elliott <micah@xxxxxxxxxxx>
- Subject: Re: Idiom for booleans
- Date: Sat, 13 Aug 2011 12:37:26 +0200
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=jcD++xQEG9z6+YrqyTMQJAJ6dE3eABD8p4m/6JU4eh8=; b=RNl4JgSGiAav3sND4RTM732JidPYHqmilR0nK3z208dN/kg6UVl7e3cz+jFdCGRyuT F/1uHN/bDpf/5R/7YRSsMyKVpkBVznIQR3vHRFx5b53kb4JNMG6L2qmABlS3tvcOQlIx kf11aq+LawdWfPnuSoYmaMKIeOfDVAspoyyDM=
- In-reply-to: <CAELbujqBkE_zUG9M2+DS4mv=TxxKT=Rq4vH2fhXsbJ235B4nAA__26422.7002081045$1313213450$gmane$org@mail.gmail.com> (Micah Elliott's message of "Fri, 12 Aug 2011 22:26:53 -0700")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAELbujo=KyJyzzo1vW+ydLVA=PddguguXkBr7yN3zvmOgmYFpQ@mail.gmail.com> <110812200942.ZM8287@torch.brasslantern.com> <CAELbujqBkE_zUG9M2+DS4mv=TxxKT=Rq4vH2fhXsbJ235B4nAA__26422.7002081045$1313213450$gmane$org@mail.gmail.com>
On Sat, 13 Aug 2011 07:26:53 +0200
Micah Elliott wrote:
> So the buggy (or just bash-aware) python utility isn't going to work
> with zsh.
FWIW, I've been using this (put in my .zshrc), and never had any
problems (the (()) thing works as expected):
# from /etc/bash.bashrc, handle -> handler
if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handler {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found -- $1
return $?
else
return 127
fi
}
fi
--
Štěpán
Messages sorted by:
Reverse Date,
Date,
Thread,
Author