From: Micah Elliott <micah@membean.com>
To: Bart Schaefer <schaefer@brasslantern.com>, zsh-users@zsh.org
Subject: Re: Idiom for booleans
Date: Fri, 12 Aug 2011 22:26:53 -0700 [thread overview]
Message-ID: <CAELbujqBkE_zUG9M2+DS4mv=TxxKT=Rq4vH2fhXsbJ235B4nAA@mail.gmail.com> (raw)
In-Reply-To: <110812200942.ZM8287@torch.brasslantern.com>
> 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 ?
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 zsh.
I'm also happy to see that by disabling command-not-found I can now do
this without funny "command not found" messages:
% foo=bar ls not_a_file # with command-not-found enabled
ls: cannot access not_a_file: No such file or directory
foo=bar: command not found <-- UGH!!
I'll plan to file bugs on these for zsh. http://goo.gl/alnwN
--
twitter:@Membean | email:Micah@Membean.com | http://Membean.com
Remember your words with Membean! Three free days of learning!
next prev parent reply other threads:[~2011-08-13 5:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-13 0:24 Micah Elliott
2011-08-13 3:09 ` Bart Schaefer
2011-08-13 5:26 ` Micah Elliott [this message]
2011-08-15 1:11 ` Bart Schaefer
2011-08-15 8:28 ` Julien Nicoulaud
[not found] ` <CAELbujqBkE_zUG9M2+DS4mv=TxxKT=Rq4vH2fhXsbJ235B4nAA__26422.7002081045$1313213450$gmane$org@mail.gmail.com>
2011-08-13 10:37 ` Štěpán Němec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAELbujqBkE_zUG9M2+DS4mv=TxxKT=Rq4vH2fhXsbJ235B4nAA@mail.gmail.com' \
--to=micah@membean.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).