2010年9月21日

[installer 2510] GNU grep-2.7

GNU grep-2.7 出ています。

☆ GNU grep-2.7
http://www.gnu.org/software/grep/
http://ftp.gnu.org/gnu/grep/grep-2.7.tar.gz
ftp://ftp.gnu.org/gnu/grep/grep-2.7.tar.gz

* Noteworthy changes in release 2.7 (2010-09-16) [stable]


** Bug fixes

grep --include=FILE works once again, rather than working like --exclude=FILE
[bug introduced in grep-2.6]

Searching with grep -Fw for an empty string would not match an
empty line. [bug present since "the beginning"]

X{0,0} is implemented correctly. It used to be a synonym of X{0,1}.
[bug present since "the beginning"]

In multibyte locales, regular expressions including backreferences
no longer exhibit quadratic complexity (i.e., they are orders
of magnitude faster). [bug present since multi-byte character set
support was introduced in 2.5.2]

In UTF-8 locales, regular expressions including "." can be orders
of magnitude faster. For example, "grep ." is now twice as fast
as "grep -v ^$", instead of being immensely slower. It remains
slow in other multibyte locales. [bug present since multi-byte
character set support was introduced in 2.5.2]

--mmap was meant to be ignored in 2.6.x, but it was instead
removed by mistake. [bug introduced in 2.6]

** New features

grep now diagnoses (and fails with exit status 2) commonly mistyped
regular expression like [:space:], [:digit:], etc. Before, those were
silently interpreted as [ac:eps] and [dgit:] respectively. Virtually
all who make that class of mistake should have used [[:space:]] or
[[:digit:]]. This new behavior is disabled when the POSIXLY_CORRECT
environment variable is set.

On systems using glibc, grep can support equivalence classes. However,
whether they actually work depends on glibc's locale definitions.

----
こがよういちろう


投稿者 xml-rpc : 2010年9月21日 09:26
役に立ちました?:
過去のフィードバック 平均:(0) 総合:(0) 投票回数:(0)
本記事へのTrackback: http://hoop.euqset.org/blog/mt-tb2006.cgi/98520
トラックバック
コメント
コメントする




画像の中に見える文字を入力してください。