zsh-workers
 help / color / mirror / code / Atom feed
From: Ismail Donmez <ismail@i10z.com>
To: zsh-workers@zsh.org
Subject: Command not found error with "=" prefix
Date: Fri, 16 Oct 2015 11:15:01 +0000 (UTC)	[thread overview]
Message-ID: <loom.20151016T131226-740@post.gmane.org> (raw)

Hi,

If you prefix a command with "=" and the application returns an error then 
zsh also displays a command not found error:

λ echo $ZSH_VERSION 
5.1.1

λ =true
λ

No error, fine.

λ =false
=false: command not found 

false does exist though:

λ type -a false
false is a shell builtin
false is /usr/bin/false
false is /usr/bin/false
false is /usr/bin/false
false is /bin/false
false is /usr/bin/X11/false

Also reproducable with other programs:

λ =clang -fuse-ld=lld2 test.c -lm
unrecognized reloc 23
clang-3.8: error: linker command failed with exit code 1 (use -v to see 
invocation)
=clang: command not found 


             reply	other threads:[~2015-10-16 11:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16 11:15 Ismail Donmez [this message]
2015-10-16 11:41 ` Peter Stephenson
2015-10-16 12:57   ` Ismail Donmez

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=loom.20151016T131226-740@post.gmane.org \
    --to=ismail@i10z.com \
    --cc=zsh-workers@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).