Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Trouble looking up commands beginning with "add" #62

Open
cillian64 opened this issue Apr 22, 2015 · 2 comments
Open

Trouble looking up commands beginning with "add" #62

cillian64 opened this issue Apr 22, 2015 · 2 comments

Comments

@cillian64
Copy link

If you try to lookup a command such as add-apt-repository by running

bro add-apt-repository

it opens the editor to create an entry for this command rather than looking it up. The correct behaviour can be obtained by running bro lookup add-apt-repository but the actual behaviour is certainly not what is expected. Common patterns like bro -- add-apt-repository (the -- is often used to indicate the end of arguments) do not do the correct thing either.

@cillian64
Copy link
Author

I've just tried with git master and this still seems to happen. It's
possible something is getting confused with my system-installed bropages,
as I don't understand ruby.

dwt27@RightClick ~/g/b/lib> ruby bro.rb lookup add-apt-repository
1 entry for add-apt-repository -- submit your own example with "bro add
add-apt-repository"

dwt27@RightClick ~/g/b/lib> ruby bro.rb add-apt-repository
Canceled. Did not submit entry for 'add-apt-repository'
dwt27@RightClick ~/g/b/lib> git log -n1
commit 020dac5

dwt27@RightClick ~/g/b/lib> ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]

On 4 June 2016 at 13:06, goreilly notifications@github.com wrote:

I checked out master and the bug didn't happen. One of the commits since
0.1 fixed this I believe.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABTzWMOKvY6_I5rGnoXOpYtTU-jgyMb0ks5qIWpKgaJpZM4EGXKM
.

@hubsmoke
Copy link
Owner

hubsmoke commented Jun 5, 2016

Ah ok I will have to take a look at fixing this. A problem with making a
not very verbose command line is collisions like these! Thanks for the
reports all
On Jun 4, 2016 6:34 AM, "David Turner" notifications@github.com wrote:

I've just tried with git master and this still seems to happen. It's
possible something is getting confused with my system-installed bropages,
as I don't understand ruby.

dwt27@RightClick ~/g/b/lib> ruby bro.rb lookup add-apt-repository
1 entry for add-apt-repository -- submit your own example with "bro add
add-apt-repository"

dwt27@RightClick ~/g/b/lib> ruby bro.rb add-apt-repository
Canceled. Did not submit entry for 'add-apt-repository'
dwt27@RightClick ~/g/b/lib> git log -n1
commit 020dac5

dwt27@RightClick ~/g/b/lib> ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]

On 4 June 2016 at 13:06, goreilly notifications@github.com wrote:

I checked out master and the bug didn't happen. One of the commits since
0.1 fixed this I believe.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#62 (comment), or
mute
the thread
<
https://github.com/notifications/unsubscribe/ABTzWMOKvY6_I5rGnoXOpYtTU-jgyMb0ks5qIWpKgaJpZM4EGXKM

.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AARBZtBr4dg0N2iWs_HmmfUp_nzfh6k5ks5qIXC_gaJpZM4EGXKM
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants