Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion tests fail with patches to 11415
- X-seq: zsh-workers 11435
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Completion tests fail with patches to 11415
- Date: Wed, 17 May 2000 10:23:43 +0000
- In-reply-to: <200005170652.IAA27427@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200005170652.IAA27427@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On May 17, 8:52am, Sven Wischnowsky wrote:
}
} } Bart Schaefer wrote:
}
} > ! line: {tst -x }{}
} > --- 1,2 ----
} > ! line: {tst -}{}
}
} That's caused by 11406. Humm.
}
} What are we supposed to do now. With respect to the patch, this
} behaviour is correct (and quite reasonable, I think). Should we only
} update the test? Should we make _arguments not try default-option
} completion only when it tried a *non-empty* action?
}
} I think I prefer the former.
Updating the test is fine with me. Is the test right after it (which
previously was expected to produce identical output) also correct with
respect to the intended post-11406 behavior?
Index: Test/53completion.ztst
===================================================================
@@ -121,7 +121,8 @@
code='compdef _tst tst; _tst () { _arguments "-x" ":arg:" }'
comptest -c "$code" $'tst -\t'
0:_arguments
->line: {tst -x }{}
+>line: {tst -}{}
+>MESSAGE:{arg}
code='compdef _tst tst; _tst () { _arguments "-x:arg:" }'
comptest -c "$code" $'tst -x\t'
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author