From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9540 invoked by alias); 4 Mar 2018 23:11:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42422 Received: (qmail 1955 invoked by uid 1010); 4 Mar 2018 23:11:46 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(-1.9/5.0):. Processed in 2.202177 secs); 04 Mar 2018 23:11:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new using ClamAV (14) Date: Sun, 4 Mar 2018 15:42:08 +0100 From: Sebastian Gniazdowski To: zsh-workers@zsh.org Message-ID: Subject: Bug in regex library, FIY, and also where to report it? X-Mailer: Airmail (467) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, % REGEX=3D'=5E=5B=C3=BE-=C4=81=5D+=24'; =5B=5B =C3=BF =3D=7E =24REGEX =5D= =5D && echo yes zsh: failed to compile regex: invalid character range =C3=BE is decimal 254,=C2=A0=C4=81 is decimal 257. If one splits this ran= ge on 255/256 decimal: % REGEX=3D'=5E=5B=C3=BE-=C3=BF=C4=80-=C4=81=5D+=24'; =5B=5B =C3=BF =3D=7E= =24REGEX =5D=5D && echo yes yes Then it works. Bash 3.2 doesn't print error message, but first regex does= n't yield =22yes=22 in output (in Bash 4.4 both work). Also, Mikachu chec= ked that =60setopt=C2=A0rematchpcre=60 makes first regex work. I checked = that the range works if treated as Zsh pattern. All in all, it seems to be located in the regex library, as Bash shares s= ame issue, and pcre works fine. Has anyone a hint where to report this=3F= -- =20 Sebastian Gniazdowski psprint /at/ zdharma.org