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

tipc completion error #59

Closed
scop opened this issue Aug 2, 2016 · 3 comments
Closed

tipc completion error #59

scop opened this issue Aug 2, 2016 · 3 comments

Comments

@scop
Copy link
Owner

scop commented Aug 2, 2016

Just some random poking around tipc completion: tipc lin<TAB>ge<TAB>tol<TAB> gives tipc link get tolerance. Then hitting another tab there gives tipc link get tolerance link, and hitting another tab there spews an error:

error: No such file or directory
Unable to get TIPC nl family id (module loaded?)
error, message initialisation failed

This is on Fedora 23, non-root. @rical, could you have a look?

@rical
Copy link

rical commented Aug 2, 2016

This is sort of expected behavior, apart from maybe the error looking bad.

This is the synopsis:
tipc link get { tolerance | priority | window } link TIPC-LINK-NAME

When you press the last tab for completing TIPC-LINK-NAME the bash-completion recipe tries to get the tipc link names using the tipc command, which fails as you don't have the TIPC module loaded on your system.

What I perhaps could do is implement a silent TIPC module check here, so that the last tab simply dons't output anything?

@scop
Copy link
Owner Author

scop commented Aug 2, 2016

Yes, the right thing to do is to just suppress the error message.

@lequangdang
Copy link

"modprobe tipc" will resolve the problem

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

3 participants