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

centos7 -bash: complete: nosort: invalid option name #1

Open
shakibamoshiri opened this issue Feb 28, 2021 · 1 comment
Open

centos7 -bash: complete: nosort: invalid option name #1

shakibamoshiri opened this issue Feb 28, 2021 · 1 comment

Comments

@shakibamoshiri
Copy link

On Centos7 , when I want to add _comp_ldc.sh it gives me an error. It seems that in centos7 the complete command does not support nosort options

Test

> curl -sLO https://raw.githubusercontent.com/redcursor/btc/master/ldc/_comp_ldc.sh
> source _comp_ldc.sh 
-bash: complete: nosort: invalid option name
@shakibamoshiri
Copy link
Author

Yes on Centos7 the complete command does not support nosort options. if you remove it, it works.
So this line

complete -o bashdefault -o nosort  -o default -F _comp_ldc ldc

should be changed to (remove -o nosort )

complete -o bashdefault  -o default -F _comp_ldc ldc

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

1 participant