Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33402 - etcat -f 2 crashes with error not with expected [ Applications found : 0 ]
Summary: etcat -f 2 crashes with error not with expected [ Applications found : 0 ]
Status: RESOLVED DUPLICATE of bug 32871
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-13 09:17 UTC by Christopher Hammel
Modified: 2005-07-17 13:06 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 Christopher Hammel 2003-11-13 09:17:10 UTC
When etcat -f 2 is enterned the following error is produced.  

This error is generated whenever the first character of the search string is a 
number so etcat -f 2big would also generate a similar error

[ Results for search key : 2 ]
Traceback (most recent call last):
  File "/usr/bin/etcat", line 1105, in ?
    main()
  File "/usr/bin/etcat", line 1101, in main
    function(query)
  File "/usr/bin/etcat", line 994, in files
    print "[ Applications found : " + white(str(len(matches))) + " ]"
UnboundLocalError: local variable 'matches' referenced before assignment


I think that etcat should return [ Applications found : 0 ] it looks like it is 
trying to get this done.  This error is similar to bug 29574

Reproducible: Always
Steps to Reproduce:
1. etcat -f 2
2.
3.

Actual Results:  
[ Results for search key : 2 ]
Traceback (most recent call last):
  File "/usr/bin/etcat", line 1105, in ?
    main()
  File "/usr/bin/etcat", line 1101, in main
    function(query)
  File "/usr/bin/etcat", line 994, in files
    print "[ Applications found : " + white(str(len(matches))) + " ]"
UnboundLocalError: local variable 'matches' referenced before assignment


Expected Results:  
[ Results for search key : 2 ]
[ Applications found : 0 ]
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-11-13 10:09:35 UTC

*** This bug has been marked as a duplicate of 32871 ***