GNU bug report logs - #15441
[PATCH] tests: ensure neither \s nor \S matches an invalid multibyte character

Previous Next

Package: grep;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Mon, 23 Sep 2013 05:20:02 UTC

Severity: normal

Tags: notabug, patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: 15441 <at> debbugs.gnu.org
Subject: bug#15441: [PATCH] tests: ensure neither \s nor \S matches an invalid multibyte character
Date: Mon, 23 Sep 2013 14:26:12 +0100
Hi Jim.

On 09/23/2013 06:18 AM, Jim Meyering wrote:
> Here's a test for the original problem, which is also fixed by the
> preceding patch:
>
> ...
>
>+grep '^\S$' in > out-S && fail=1
> +compare /dev/null out-S || exit=1
>
Shouldn't this be "|| fail=1"?

> +grep '^\s$' in > out-s && fail=1
> +compare /dev/null out-s || exit=1
>
Ditto.

Regards,
  Stefano




This bug report was last modified 11 years and 266 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.