First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 158841
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 119518
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: David Benjamin <dnas.dnas@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
genlop.patch patch to /usr/share/bash-completion/genlop patch David Benjamin 2006-12-22 08:26 0000 1.54 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 158841 depends on: Show dependency tree
Bug 158841 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-12-22 08:21 0000
When pressing tab to tab-complete on genlop, one gets this error.

bash: [: =: unary operator expected

The /usr/bash-completion/genlop script does not quote some arguments in test
clauses, so bash misinterprets it... (will attach a patch, there doesn't seem
to be an attachment box in bug reporting spot though)

(I hope I'm not reporting this in the wrong place, the file has a Gentoo
copyright on it, so I assume it's yours...)

------- Comment #1 From David Benjamin 2006-12-22 08:26:42 0000 -------
Created an attachment (id=104585) [details]
patch to /usr/share/bash-completion/genlop

patchfile to fix problem...

I also went ahead and changed grep to basic regexp as opposed to extended
regexp because basic has ^, *, and ., and has less of a chance to prevent
collisions in the user's typing. (and it might be faster, but I doubt it)

Also, I quoted the other if statements even though they don't seem to be
causing a problem right now. (The ${portagedir} one is the culprit.) Just in
case some problems come up... (although, weird things would have to happen if
the wc -l one breaks if)

------- Comment #2 From Jakub Moc (RETIRED) 2006-12-22 08:27:14 0000 -------

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

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

First Last Prev Next    No search results available      Search page      Enter new bug