Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
bash-completion.2661
respect-variables-boo940837.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File respect-variables-boo940837.patch of Package bash-completion.2661
Bug boo#940837 Bug bsc#959299 That is do not escape the dollar character of a variable to allow commands like `ls' to go further in its completion chain. --- bash_completion | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) --- bash_completion +++ bash_completion 2015-12-18 09:53:36.647442000 +0100 @@ -1798,8 +1798,19 @@ _complete_as_root() _longopt() { - local cur prev words cword split - _init_completion -s || return + local cur=${COMP_WORDS[COMP_CWORD]} + local prev words cword split + + if [[ "${cur:0:1}" == '$' ]] ; then + compopt -o dirnames +o filenames + else + compopt +o dirnames -o filenames + fi + + if ! _init_completion -s ; then + _dollar $cur + return + fi case "${prev,,}" in --help|--usage|--version)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor