Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 90557

Summary: euse uses grep instead of egrep with extended syntax
Product: Portage Development Reporter: Frédéric Point <fredpoint>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: very simple patch (one char)

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