Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90557 - euse uses grep instead of egrep with extended syntax
Summary: euse uses grep instead of egrep with extended syntax
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 16:27 UTC by Frédéric Point
Modified: 2005-04-27 03:21 UTC (History)
0 users

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


Attachments
very simple patch (one char) (euse-grep_vs_egrep.path,415 bytes, patch)
2005-04-26 16:33 UTC, Frédéric Point
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Point 2005-04-26 16:27:14 UTC
when i launch euse "out of the box" I encouter these errors :



itchy-scratchy root # euse -v
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
readlink: too many arguments
Try `readlink --help' for more information.
ERROR: /make.defaults is not readable


When i modified line 157 :
   parent="$(grep -v '(^#|^ *$)' ${curdir}/parent)"
with
   parent="$(egrep -v '(^#|^ *$)' ${curdir}/parent)"

it works normally :)
Comment 1 Frédéric Point 2005-04-26 16:33:31 UTC
Created attachment 57338 [details, diff]
very simple patch (one char)
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-04-26 16:34:37 UTC
'(^#|^ *$)'
is extended syntax, as such needs grep -E or egrep.
What os is this? osx?
Comment 3 SpanKY gentoo-dev 2005-04-26 16:37:12 UTC
what does it matter ?  you yourself just said that extended syntax requires egrep
Comment 4 Frédéric Point 2005-04-27 01:58:17 UTC
i am on x86
Comment 5 Frédéric Point 2005-04-27 01:59:30 UTC
oops 

linux x86
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2005-04-27 03:21:10 UTC
Fixed in 0.2.1_pre2