Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [^ax-y] doesn't work but [^x-ya] does



Op 07-03-17 om 10:51 schreef Peter Stephenson:
> On Mon, 6 Mar 2017 11:28:30 +0000
> Peter Stephenson <p.stephenson@xxxxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author