Bugzilla – Bug 1216531
osc completion defunct
Last modified: 2024-01-09 08:55:47 UTC
osc <TAB><TAB> does not work. It seems autocompletion is broken. In particular, /usr/share/bash-completion/bash_completion looks for: for compfile in "$cmd" "$cmd.bash" "_$cmd"; do so the installed: /usr/share/bash-completion/completions/osc.sh is skipped. The suffix is supposed to be ".bash" or no suffix at all. If I move it, it's still broken, as the "returned" value is an error from the last command: test -s /usr/lib/osc/complete && complete -o default -C /usr/lib/osc/complete osc If I put 'true' at the end, everything is fine. So the fixed script looks like: test -z "$BASH_VERSION" && return complete -o default _nullcommand >/dev/null 2>&1 || return complete -r _nullcommand >/dev/null 2>&1 || return test -s /usr/share/osc/complete && complete -o default -C /usr/share/osc/complete osc && return test -s /usr/lib64/osc/complete && complete -o default -C /usr/lib64/osc/complete osc && return test -s /usr/lib/osc/complete && complete -o default -C /usr/lib/osc/complete osc
sr#1119916 and https://github.com/openSUSE/osc/pull/1441
This is an autogenerated message for OBS integration: This bug (1216531) was mentioned in https://build.opensuse.org/request/show/1120473 Tools / osc
Fixed upstream, in Factory and there is an open submission to SLE-15-SP4+.