From 615333072b78afa1a1ee3d07d9fc144a9259a83a Mon Sep 17 00:00:00 2001 From: Joe Bloggs Date: Thu, 27 Mar 2014 17:23:54 +0000 Subject: [PATCH] update --- zsh-completions-howto.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-completions-howto.org b/zsh-completions-howto.org index 542f496..df8fc36 100644 --- a/zsh-completions-howto.org +++ b/zsh-completions-howto.org @@ -277,7 +277,7 @@ word is allowed which can be word2 followed by and a, b, or c, or a filename. If this sounds too complicated a much simpler alternative is to use the _regex_words function for creating specifications for _regex_arguments. *** Patterns -You may notice that the / PATTERN/ specs in the previous example doesn't look like normal regular expressions. +You may notice that the / PATTERN/ specs in the previous example don't look like normal regular expressions. Often a string parameter in the form $'foo\0' is used. This is so that the \0 in the string is interpreted correctly as a null char which is used to separate words in the internal representation. If you don't include the \0 at the end of the pattern you may get problems matching the next word. If you need to use the contents of a variable in a pattern,