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

ssh completion -> egrep: empty (sub)expression #346

Closed
kleinski opened this issue Jul 14, 2022 · 2 comments
Closed

ssh completion -> egrep: empty (sub)expression #346

kleinski opened this issue Jul 14, 2022 · 2 comments

Comments

@kleinski
Copy link

Using grep as an alias for egrep leads to "ssh egrep: empty (sub)expression" in the completion of ssh hosts.
I commented the following alias setting in .oh-my-bash/lib/grep.sh out and now the irritating error message is gone:

# omb_util_alias grep="egrep ${_omb_grep_options[*]}"

I suggest leaving it to the user, if grep or egrep shall be used, would be better.

Using bash 5.1.16 on MacOs 12.3.1.

image

@kleinski kleinski changed the title "ssh egrep: empty (sub)expression" "ssh comegrep: empty (sub)expression" Jul 14, 2022
@kleinski kleinski changed the title "ssh comegrep: empty (sub)expression" ssh completion -> egrep: empty (sub)expression Jul 14, 2022
@akinomyoga
Copy link
Contributor

Oh, this is just my mistake I made in #305. This is causing an error with grep -v ^\| in this line. I pushed a fix e7ca92b. Thank you for the report.

@kleinski
Copy link
Author

Works now as good as before, thanks for the quick fix!

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

2 participants