Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Test failures in artih and arguments
- X-seq: zsh-workers 16491
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Test failures in artih and arguments
- Date: Fri, 25 Jan 2002 09:58:12 +0100
- In-reply-to: <20020123145155.25539.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020123145155.25539.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Felix Rosencrantz wrote:
> ...
>
> ./Y03arguments.ztst: starting.
> *** /tmp/zsh.ztst.out.2530 Tue Jan 22 10:02:28 2002
> --- /tmp/zsh.ztst.tout.2530 Tue Jan 22 10:02:28 2002
> ***************
> *** 1,4 ****
> ! line: {tst -}{}
> ! MESSAGE:{arg}
> ! DESCRIPTION:{option}
> ! NO:{-x}
> --- 1 ----
> ! line: {tst -x }{}
> Test ./Y03arguments.ztst failed: output differs from expected as shown
> above for:
> tst_arguments '-x' ':arg:'
> comptest $'tst -\t'
> Was testing: argument beginning with minus
> ./Y03arguments.ztst: test failed.
Grrrr... that's a result of the fake style patch. Previously, with a
function containing:
_argument '-x' ':arg:'
doing
foo -<TAB>
didn't insert anything and displayed be message `arg'.
This was done by some code in _main_complete which I had to change
because otherwise adding completing a faked matched for the `arg'
above wouldn't work. Quite naturally, actually.
If I remember correctly, the behaviour was added on request from
Tanaka Akira.
So we now have the problem that in exactly the same case something we
certainly want to have with faked matches conflicts with the behaviour
we wanted there previously (or even now, without faked matches).
I'm not sure how to solve this.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author