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

Re: [PATCH] PCRE/NUL: pass NUL in for text, handle NUL out



On Thu, 15 Jun 2017 16:40:50 -0400
Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
> index ad1770712..03cb95791 100644
> --- a/Test/V07pcre.ztst
> +++ b/Test/V07pcre.ztst
> @@ -131,6 +131,11 @@
>  >78884; ZPCRE_OP: 25 30
>  >90210; ZPCRE_OP: 31 36
>  
> +# Embedded NULs allowed in plaintext, but not in RE (although \0 as two-chars allowed)
> +  [[ $'a\0bc\0d' =~ '^(a\0.)(.+)$' ]]
> +  print "${#MATCH}; ${#match[1]}; ${#match[2]}"
> +>6; 3; 3

Not sure what's going on here but there needs to be a status /
description line.

Was there are a response to Stephane's further suggestion?

pws



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