-
Notifications
You must be signed in to change notification settings - Fork 380
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
Add completion for BSD chflags(1) command #1065
base: main
Are you sure you want to change the base?
Conversation
Yes, that would be more useful.
FreeBSD and Darwin.
Yep, I forgot to remove this declaration. |
Thank you for those updates. |
for w in "${words[@]}"; do | ||
[[ $w == -R ]] && opts="-H -L -P" && break | ||
done | ||
_comp_compgen -- -W '-f -h -v -R $opts' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FreeBSD (15.0) has -x
.
_comp_compgen -- -W '-f -h -v -R $opts' | |
_comp_compgen -- -W '-f -h -v -x -R $opts' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If -x
is not available in other BSDs, I think we should reference $OSTYPE
for -x
the same as for the first word.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow the CI has failed to start. https://github.com/scop/bash-completion/actions/runs/7713997204 We recently updated the version of release-please-action in #1075. @Low-power Could you rebase it again on top of the latest |
I rebased. I also added links to the references in commit 5bd938b. |
No description provided.