From 4bd2d21cbd5eff576c2930622fbbd9f6aed8e3ed Mon Sep 17 00:00:00 2001 From: Joe Bloggs Date: Mon, 21 Apr 2014 15:45:21 +0100 Subject: [PATCH] Add reminder to declare local parameters. --- zsh-completions-howto.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh-completions-howto.org b/zsh-completions-howto.org index d494a10..efa9888 100644 --- a/zsh-completions-howto.org +++ b/zsh-completions-howto.org @@ -427,7 +427,9 @@ _alternative, _regex_arguments, etc. Remember to include an initial pattern to match the command word when using _regex_arguments (it does not need a matching action). -Remember to put a null char $'\0' at the end of any PATTERN argument for _regex_arguments +Remember to put a null char $'\0' at the end of any PATTERN argument for _regex_arguments. + +Remember to declare all local parameters before using them. * Tips Sometimes you have a situation where there is just one option that can come after a subcommand, and zsh will complete this automatically when tab is pressed after the subcommand. If instead you want it listed with its description before completing