Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356627 - app-arch/xz-utils: xz[ef]grep don't correspond to [ef]grep
Summary: app-arch/xz-utils: xz[ef]grep don't correspond to [ef]grep
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-26 21:47 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-03-01 01:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-02-26 21:47:33 UTC
Seems like all the xz*grep only call standard grep, not the egrep or fgrep variant. Example:

flame@yamato ~ % echo 'foobar' | grep 'b(ra|ar)'
flame@yamato ~ % echo 'foobar' | egrep 'b(ra|ar)'
foobar
flame@yamato ~ % echo 'foobar' | xz - | xzegrep 'b(ra|ar)'
flame@yamato ~ % echo 'foobar' | xz - | xzgrep -E 'b(ra|ar)'
foobar

This happens both on 4.999 and 5.0.1.
Comment 1 Martin Väth 2011-02-27 06:46:19 UTC
Bug is in line 30:
  case ${0##/*} in
should be
  case ${0##*/} in
Comment 2 SpanKY gentoo-dev 2011-03-01 01:53:44 UTC
sent upstream and fixed in 5.0.1-r1