zsh-workers
 help / color / mirror / code / Atom feed
From: "Šimon Let" <simon.a.let@gmail.com>
To: zsh-workers@zsh.org
Subject: Issue: Handling of globbing fails
Date: Mon, 12 Feb 2018 17:34:11 +0100	[thread overview]
Message-ID: <CAOdNpm8pHJDTe2vbdXbVSa7wmtFTW3k7Y641_-Yif42Hqsd6WA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Hi,
I want to create an issue.


The way zsh handles globbing fails is non-systematic.

Consider running following command:

`echo some_empty_directory/* && echo "NO FAIL" || echo "FAIL"`

It produces following output:

`zsh: no matches found: some_empty_dir/*`

The command causes globbing fail but the way zsh handles this fail is
beyond me.
Why does globbing fail stop execution of the current line (or script)?

This behavior is non-systematic or surprising at least.
Why does failed globbing behave almost as a parsing error?


Cheers,

Simon Let

             reply	other threads:[~2018-02-12 16:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180212163514epcas5p34a9c8c3dd91cc702e72871cb009648ef@epcas5p3.samsung.com>
2018-02-12 16:34 ` Šimon Let [this message]
2018-02-12 17:03   ` Peter Stephenson

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=CAOdNpm8pHJDTe2vbdXbVSa7wmtFTW3k7Y641_-Yif42Hqsd6WA@mail.gmail.com \
    --to=simon.a.let@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).