zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: "no_nomatch" and glob qualifiers
Date: Tue, 6 Oct 2015 00:49:38 -0700	[thread overview]
Message-ID: <151006004938.ZM4821@torch.brasslantern.com> (raw)
In-Reply-To: <CAHYJk3RDFBNbQ8VKfdV1Pu_nGpjHys4YKE+xYU99mF8Q2MQSFA@mail.gmail.com>

On Oct 6,  1:47am, Mikael Magnusson wrote:
}
} > % echo x(a)
} > zsh: number expected
} >
} > Should that not have output "x(a)" ?
} 
} I feel like there is a difference between "this is a valid glob that
} has no matches" and "this is a syntax error", and this is that
} difference.

If that were it then nobadpattern should fix it, yet for qualifiers it
still fails.

% setopt nonomatch nobadpattern
% echo x(z)
zsh: unknown file attribute: z
% 

But on the other hand:

% unsetopt nobadpattern
% echo x(,)
x(,)
% 

} % echo a(
} >
} 
} also doesn't "work".

Close the paren and you get

zsh: unknown file attribute: \n

I can counter-example that one, too:

% echo x(:
> )
x(:
)
% 

A missing numeric argument is an error, but an invalid colon-modifier
is not?

(I'm not really arguing that we should change anything, unless somebody
is convinced by this discussion that I should be.)


      reply	other threads:[~2015-10-06  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-05 22:22 Bart Schaefer
2015-10-05 23:47 ` Mikael Magnusson
2015-10-06  7:49   ` Bart Schaefer [this message]

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=151006004938.ZM4821@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).