GNU bug report logs - #30681
What characters are in [[:space:]]?

Previous Next

Package: grep;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Fri, 2 Mar 2018 17:24:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peng Yu <pengyu.ut <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: What characters are in [[:space:]]?
Date: Fri, 2 Mar 2018 11:23:22 -0600
Hi,

[[:space:]] includes the following unicode character.
http://www.fileformat.info/info/unicode/char/00a0/index.htm

$ echo 'a b' | grep 'a[[:space:]]b'
a b
$ echo 'a b'|xxd
00000000: 61c2 a062 0a                             a..b.

Where is this info documented for grep?

Are these all the possible white space characters?

http://jkorpela.fi/chars/spaces.html

-- 
Regards,
Peng




This bug report was last modified 7 years and 174 days ago.

Previous Next


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