Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash-it search fails #765

Closed
rdgreen opened this issue Jul 28, 2016 · 4 comments
Closed

bash-it search fails #765

rdgreen opened this issue Jul 28, 2016 · 4 comments

Comments

@rdgreen
Copy link

rdgreen commented Jul 28, 2016

→ bash-it search emacs
bash: alias: /usr/bin/egrep: not found
bash: alias: -i: not found
bash: alias: --: not found
bash: alias: emacs: not found
bash: alias: /usr/bin/egrep: not found
bash: alias: -i: not found
bash: alias: --: not found
bash: alias: emacs: not found
bash: alias: /usr/bin/egrep: not found
bash: alias: -i: not found
bash: alias: --: not found
bash: alias: emacs: not found

Using GNU bash, version 4.3.42(1)-release (x86_64-redhat-linux-gnu)

@rdgreen
Copy link
Author

rdgreen commented Jul 28, 2016

No plugins installed

@jammer3d
Copy link

jammer3d commented Aug 2, 2016

'unalias egrep' solves the issue but yea, there is a bug here

@nwinkler
Copy link
Member

nwinkler commented Aug 3, 2016

Can you guys help figuring out what's wrong? I don't have that OS to try out...

@edubxb
Copy link
Member

edubxb commented Nov 12, 2016

Seems that the which command in RedHat/CentOS return aliases and not only the command path.

When executing:

which egrep

the output in Debian is:

/bin/egrep

and the output in Centos 7 is:

alias egrep='egrep --color=auto'
    /usr/bin/egrep

and for this reason the function that performs the search fails.

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

No branches or pull requests

4 participants