zsh-workers
 help / color / mirror / code / Atom feed
From: Martijn Dekker <martijn@inlv.org>
To: Peter Stephenson <p.stephenson@samsung.com>,
	Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [^ax-y] doesn't work but [^x-ya] does
Date: Wed, 8 Mar 2017 19:12:17 +0000	[thread overview]
Message-ID: <bc830541-a365-1a96-dee1-0cef364b4899@inlv.org> (raw)
In-Reply-To: <20170307105149.30148b02@pwslap01u.europe.root.pri>

Op 07-03-17 om 10:51 schreef Peter Stephenson:
> On Mon, 6 Mar 2017 11:28:30 +0000
> Peter Stephenson <p.stephenson@samsung.com> wrote:
>> I may just commit this and see how it works.
> 
> I've done so.
> 
> It's entirely possible there will be more cases where a Dash token is
> encountered where the shell expects a '-' and consequently there's an
> error.  These all ought to be fixable by simple local tests.

Commit f3f8537c breaks unquoted $-:

$ Src/zsh -c 'echo $-'
(empty output)
$ Src/zsh -c 'echo "$-"'
569X
$ Src/zsh -u -c 'echo $-'
zsh:1: : parameter not set
$ Src/zsh -u -c 'echo "$-"'
569Xu
$ Src/zsh -c 'echo ${-}'
(empty output)
$ Src/zsh -c 'echo "${-}"'
569X
$ Src/zsh -u -c 'echo ${-}'
(empty output)
$ Src/zsh -u -c 'echo "${-}"'
569Xu


  reply	other threads:[~2017-03-08 19:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170302073436epcas2p1ee2d6d723bc7b0865e11243777a08417@epcas2p1.samsung.com>
2017-03-02  7:33 ` Sebastian Gniazdowski
2017-03-02  8:36   ` Sebastian Gniazdowski
2017-03-02 10:47   ` Peter Stephenson
2017-03-02 11:22     ` Sebastian Gniazdowski
2017-03-02 11:53       ` Peter Stephenson
2017-03-04 23:21         ` Bart Schaefer
2017-03-06 11:28           ` Peter Stephenson
2017-03-07 10:51             ` Peter Stephenson
2017-03-08 19:12               ` Martijn Dekker [this message]
2017-03-09  5:18                 ` Bart Schaefer
2017-03-09 10:29                   ` Peter Stephenson
2017-02-24 20:38 Sebastian Gniazdowski
2017-02-25  7:32 ` Bart Schaefer
2017-02-25  8:21   ` Sebastian Gniazdowski

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=bc830541-a365-1a96-dee1-0cef364b4899@inlv.org \
    --to=martijn@inlv.org \
    --cc=p.stephenson@samsung.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).