From: Vasiliy Ivanov <beelzebubbie.logs@gmail.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: `=' expansion causes script/subshell to exit, bug?
Date: Fri, 28 Sep 2018 01:20:25 +0600 [thread overview]
Message-ID: <16141d86-9d3e-275f-f7b4-d8b07fc97aa7@gmail.com> (raw)
Hello. Recently I've seen that line like
[[ -x =somebinary ]] || cmd
causes script to exit unexpectedly with message like «/path/to/script:$line: =somebinary not found»,
instead of invoking || cmd and continue executing
some simple tests:
% ( [[ -x =123123 ]] || { print 'ohshi'; exit 2 } )
zsh: 123123 not found <exit code 1>
% ( b=123123; print =$b; print 'ohshi' ) ↑
zsh: 123123 not found
Is it intended behaviour?
% zsh --version
zsh 5.6.2 (x86_64-pc-linux-gnu)
--
Regards,
Vasiliy Ivanov <beelzebubbie.logs@gmail.com>
next reply other threads:[~2018-09-27 19:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-27 19:20 Vasiliy Ivanov [this message]
2018-09-27 19:41 ` dana
2018-09-27 20:33 ` Bart Schaefer
2018-09-27 20:37 ` dana
2018-09-27 22:38 ` Mikael Magnusson
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=16141d86-9d3e-275f-f7b4-d8b07fc97aa7@gmail.com \
--to=beelzebubbie.logs@gmail.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).