Debian Bug report logs - #741860
filename completion broken with bash 4.3

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: shirish शिरीष <shirishag75@gmail.com>

Date: Sun, 16 Mar 2014 16:57:02 UTC

Severity: important

Tags: confirmed, patch, upstream

Merged with 739835, 740975, 741479, 741903, 742054, 742071

Found in version bash-completion/1:2.1-2

Fixed in version bash-completion/1:2.1-3

Done: David Paleino <dapal@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Sun, 16 Mar 2014 16:57:06 GMT) (full text, mbox, link).


Acknowledgement sent to shirish शिरीष <shirishag75@gmail.com>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Sun, 16 Mar 2014 16:57:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: shirish शिरीष <shirishag75@gmail.com>
To: debian-bts <submit@bugs.debian.org>
Subject: bash-completion 1:2.1-2 tab-completion is broken
Date: Sun, 16 Mar 2014 22:23:31 +0530
Package: bash-completion
Version: 1:2.1-2
Severity: important

Dear Maintainer,
I do not know whether the issue is with bash or bash-completion but
either way it's broken. This happened though few days ago only.

This is what happens when I try to use tab-completion.

[download] Destination: Network Mapping-_uIOdTfp6Pw.mp4
[download] 100% of 116.92MiB in 13:33

$ touch Network\ <tab-key>

Now previously if there were more than 1 choice it would show, now it
just stays there. Even if I do :-

$ touch Network\  M<tab-key>

There is no response, previously it used to work.
I saw that there have been few bug-reports about bash-completion viz;

#741479,#730239 and #741273 and I do have the same issue as well. I
have no idea if both the issues are same or these are two different
issues as well.

New terminal, single tab key pressed :-

$ bash: words: bad array subscript

with double tabs do get the directory (which I guess is a feature of
tab-completion).

Looking forward to know if I can help with something as in help in
triaging it some other way as well.

Looking forward for some help.

Till l8er.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'testing-updates'), (1,
'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash  4.3-2
ii  dpkg  1.17.6

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information

-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Mon, 17 Mar 2014 01:51:10 GMT) (full text, mbox, link).


Acknowledgement sent to shirish शिरीष <shirishag75@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 17 Mar 2014 01:51:10 GMT) (full text, mbox, link).


Message #10 received at 741860@bugs.debian.org (full text, mbox, reply):

From: shirish शिरीष <shirishag75@gmail.com>
To: 741860@bugs.debian.org
Subject: using -x to find the issue in bash-completion.
Date: Mon, 17 Mar 2014 07:19:40 +0530
Hi all,
Here's some more digging :-

$ ls Net*
Network Mapping-_uIOdTfp6Pw.en.srt  Network Mapping-_uIOdTfp6Pw.mp4


$ set -x

$ touch Net+ local cur prev words cword split
+ _init_completion -s
+ local exclude= flag outx errx inx OPTIND=1
+ getopts n:e:o:i:s flag -s
+ case $flag in
+ split=false
+ exclude+==
+ getopts n:e:o:i:s flag -s
+ COMPREPLY=()
+ local 'redir=@(?([0-9])<|?([0-9&])>?(>)|>&)'
+ _get_comp_words_by_ref -n '=<>&' cur prev words cword
+ local exclude flag i OPTIND=1
+ words=()
+ local cur cword words
+ upargs=()
+ upvars=()
+ local upargs upvars vcur vcword vprev vwords
+ getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword
+ case $flag in
+ exclude='=<>&'
+ getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword
+ [[ 6 -ge 3 ]]
+ case ${!OPTIND} in
+ vcur=cur
+ let 'OPTIND += 1'
+ [[ 6 -ge 4 ]]
+ case ${!OPTIND} in
+ vprev=prev
+ let 'OPTIND += 1'
+ [[ 6 -ge 5 ]]
+ case ${!OPTIND} in
+ vwords=words
+ let 'OPTIND += 1'
+ [[ 6 -ge 6 ]]
+ case ${!OPTIND} in
+ vcword=cword
+ let 'OPTIND += 1'
+ [[ 6 -ge 7 ]]
+ __get_cword_at_cursor_by_ref '=<>&' words cword cur
+ words=()
+ local cword words
+ __reassemble_comp_words_by_ref '=<>&' words cword
+ local exclude i j line ref
+ [[ -n =<>& ]]
+ exclude='=<>&'
+ eval cword=1
++ cword=1
+ [[ -n =<>& ]]
+ line='touch Net'
+ (( i=0, j=0 ))
+ (( i < 2 ))
+ [[ 0 -gt 0 ]]
+ ref='words[0]'
+ eval 'words[0]=${!ref}${COMP_WORDS[i]}'
++ words[0]=touch
+ line=' Net'
+ [[ 0 == 1 ]]
+ (( i++, j++ ))
+ (( i < 2 ))
+ [[ 1 -gt 0 ]]
+ [[ Net == +([=<>&]) ]]
+ ref='words[1]'
+ eval 'words[1]=${!ref}${COMP_WORDS[i]}'
++ words[1]=Net
+ line=
+ [[ 1 == 1 ]]
+ eval cword=1
++ cword=1
+ (( i++, j++ ))
+ (( i < 2 ))
+ [[ 2 == 1 ]]
+ local i cur index=9 'lead=touch Net'
+ [[ 9 -gt 0 ]]
+ [[ -n touch Net ]]
+ [[ -n touchNet ]]
+ cur='touch Net'
+ (( i = 0 ))
+ (( i <= cword ))
+ [[ 9 -ge 5 ]]
+ [[ touch != \t\o\u\c\h ]]
+ [[ 0 -lt 1 ]]
+ local old_size=9
+ cur=' Net'
+ local new_size=4
+ index=4
+ (( ++i  ))
+ (( i <= cword ))
+ [[ 4 -ge 3 ]]
+ [[  Ne != \N\e\t ]]
+ cur=Net
+ (( index-- ))
+ [[ 3 -ge 3 ]]
+ [[ Net != \N\e\t ]]
+ [[ 1 -lt 1 ]]
+ (( ++i  ))
+ (( i <= cword ))
+ [[ -n Net ]]
+ [[ ! -n Net ]]
+ [[ 3 -lt 0 ]]
+ local words cword cur
+ _upvars -a2 words touch Net -v cword 1 -v cur Net
+ ((  10  ))
+ ((  10  ))
+ case $1 in
+ [[ -n 2 ]]
+ printf %d 2
+ [[ -n words ]]
+ unset -v words
+ eval 'words=("${@:3:2}")'
++ words=("${@:3:2}")
+ shift 4
+ ((  6  ))
+ case $1 in
+ [[ -n cword ]]
+ unset -v cword
+ eval 'cword="$3"'
++ cword=1
+ shift 3
+ ((  3  ))
+ case $1 in
+ [[ -n cur ]]
+ unset -v cur
+ eval 'cur="$3"'
++ cur=Net
+ shift 3
+ ((  0  ))
+ [[ -n cur ]]
+ upvars+=("$vcur")
+ upargs+=(-v $vcur "$cur")
+ [[ -n cword ]]
+ upvars+=("$vcword")
+ upargs+=(-v $vcword "$cword")
+ [[ -n prev ]]
+ [[ 1 -ge 1 ]]
+ upvars+=("$vprev")
+ upargs+=(-v $vprev "${words[cword - 1]}")
+ [[ -n words ]]
+ upvars+=("$vwords")
+ upargs+=(-a${#words[@]} $vwords "${words[@]}")
+ ((  4  ))
+ local cur cword prev words
+ _upvars -v cur Net -v cword 1 -v prev touch -a2 words touch Net
+ ((  13  ))
+ ((  13  ))
+ case $1 in
+ [[ -n cur ]]
+ unset -v cur
+ eval 'cur="$3"'
++ cur=Net
+ shift 3
+ ((  10  ))
+ case $1 in
+ [[ -n cword ]]
+ unset -v cword
+ eval 'cword="$3"'
++ cword=1
+ shift 3
+ ((  7  ))
+ case $1 in
+ [[ -n prev ]]
+ unset -v prev
+ eval 'prev="$3"'
++ prev=touch
+ shift 3
+ ((  4  ))
+ case $1 in
+ [[ -n 2 ]]
+ printf %d 2
+ [[ -n words ]]
+ unset -v words
+ eval 'words=("${@:3:2}")'
++ words=("${@:3:2}")
+ shift 4
+ ((  0  ))
+ _variables
+ [[ Net =~ ^(\$\{?)([A-Za-z0-9_]*)$ ]]
+ return 1
+ [[ Net == @(?([0-9])<|?([0-9&])>?(>)|>&)* ]]
+ [[ touch == @(?([0-9])<|?([0-9&])>?(>)|>&) ]]
+ local i skip
+ (( i=1 ))
+ (( i < 2 ))
+ [[ Net == @(?([0-9])<|?([0-9&])>?(>)|>&)* ]]
+ i=2
+ (( 1 ))
+ (( i < 2 ))
+ [[ 1 -eq 0 ]]
+ prev=touch
+ [[ -n false ]]
+ _split_longopt
+ [[ Net == --?*=* ]]
+ return 1
+ return 0
+ case "${prev,,}" in
+ false
+ [[ Net == -* ]]
+ [[ touch == @(mk|rm)dir ]]
+ _filedir
+ local i 'IFS=
' xspec
+ _tilde Net
+ local result=0
+ [[ Net == \~* ]]
+ return 0
+ local -a toks
+ local quoted x tmp
+ _quote_readline_by_ref Net quoted
+ [[ Net == \'* ]]
+ printf -v quoted %q Net
+ [[ Net == \$* ]]
++ compgen -d -- Net
+ x=
+ [[ '' != -d ]]
+ xspec=
++ compgen -f -X '' -- Net
+ x='Network Mapping-_uIOdTfp6Pw.mp4
Network Mapping-_uIOdTfp6Pw.en.srt'
+ read -r tmp
+ toks+=("$tmp")
+ read -r tmp
+ toks+=("$tmp")
+ read -r tmp
+ [[ -n '' ]]
+ [[ 2 -ne 0 ]]
+ compopt -o filenames
+ COMPREPLY+=("${toks[@]}")
work\ Mapping-_uIOdTfp6Pw.+ local cur prev words cword split
+ _init_completion -s
+ local exclude= flag outx errx inx OPTIND=1
+ getopts n:e:o:i:s flag -s
+ case $flag in
+ split=false
+ exclude+==
+ getopts n:e:o:i:s flag -s
+ COMPREPLY=()
+ local 'redir=@(?([0-9])<|?([0-9&])>?(>)|>&)'
+ _get_comp_words_by_ref -n '=<>&' cur prev words cword
+ local exclude flag i OPTIND=1
+ words=()
+ local cur cword words
+ upargs=()
+ upvars=()
+ local upargs upvars vcur vcword vprev vwords
+ getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword
+ case $flag in
+ exclude='=<>&'
+ getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword
+ [[ 6 -ge 3 ]]
+ case ${!OPTIND} in
+ vcur=cur
+ let 'OPTIND += 1'
+ [[ 6 -ge 4 ]]
+ case ${!OPTIND} in
+ vprev=prev
+ let 'OPTIND += 1'
+ [[ 6 -ge 5 ]]
+ case ${!OPTIND} in
+ vwords=words
+ let 'OPTIND += 1'
+ [[ 6 -ge 6 ]]
+ case ${!OPTIND} in
+ vcword=cword
+ let 'OPTIND += 1'
+ [[ 6 -ge 7 ]]
+ __get_cword_at_cursor_by_ref '=<>&' words cword cur
+ words=()
+ local cword words
+ __reassemble_comp_words_by_ref '=<>&' words cword
+ local exclude i j line ref
+ [[ -n =<>& ]]
+ exclude='=<>&'
+ eval cword=1
++ cword=1
+ [[ -n =<>& ]]
+ line='touch Network\ Mapping-_uIOdTfp6Pw.'
+ (( i=0, j=0 ))
+ (( i < 2 ))
+ [[ 0 -gt 0 ]]
+ ref='words[0]'
+ eval 'words[0]=${!ref}${COMP_WORDS[i]}'
++ words[0]=touch
+ line=' Network\ Mapping-_uIOdTfp6Pw.'
+ [[ 0 == 1 ]]
+ (( i++, j++ ))
+ (( i < 2 ))
+ [[ 1 -gt 0 ]]
+ [[ Network\ Mapping-_uIOdTfp6Pw. == +([=<>&]) ]]
+ ref='words[1]'
+ eval 'words[1]=${!ref}${COMP_WORDS[i]}'
++ words[1]='Network\ Mapping-_uIOdTfp6Pw.'
+ line=
+ [[ 1 == 1 ]]
+ eval cword=1
++ cword=1
+ (( i++, j++ ))
+ (( i < 2 ))
+ [[ 2 == 1 ]]
+ local i cur index=35 'lead=touch Network\ Mapping-_uIOdTfp6Pw.'
+ [[ 35 -gt 0 ]]
+ [[ -n touch Network\ Mapping-_uIOdTfp6Pw. ]]
+ [[ -n touchNetwork\Mapping-_uIOdTfp6Pw. ]]
+ cur='touch Network\ Mapping-_uIOdTfp6Pw.'
+ (( i = 0 ))
+ (( i <= cword ))
+ [[ 35 -ge 5 ]]
+ [[ touch != \t\o\u\c\h ]]
+ [[ 0 -lt 1 ]]
+ local old_size=35
+ cur=' Network\ Mapping-_uIOdTfp6Pw.'
+ local new_size=30
+ index=30
+ (( ++i  ))
+ (( i <= cword ))
+ [[ 30 -ge 29 ]]
+ [[  Network\ Mapping-_uIOdTfp6Pw != \N\e\t\w\o\r\k\\\
\M\a\p\p\i\n\g\-\_\u\I\O\d\T\f\p\6\P\w\. ]]
+ cur='Network\ Mapping-_uIOdTfp6Pw.'
+ (( index-- ))
+ [[ 29 -ge 29 ]]
+ [[ Network\ Mapping-_uIOdTfp6Pw. != \N\e\t\w\o\r\k\\\
\M\a\p\p\i\n\g\-\_\u\I\O\d\T\f\p\6\P\w\. ]]
+ [[ 1 -lt 1 ]]
+ (( ++i  ))
+ (( i <= cword ))
+ [[ -n Network\ Mapping-_uIOdTfp6Pw. ]]
+ [[ ! -n Network\Mapping-_uIOdTfp6Pw. ]]
+ [[ 29 -lt 0 ]]
+ local words cword cur
+ _upvars -a2 words touch 'Network\ Mapping-_uIOdTfp6Pw.' -v cword 1
-v cur 'Network\ Mapping-_uIOdTfp6Pw.'
+ ((  10  ))
+ ((  10  ))
+ case $1 in
+ [[ -n 2 ]]
+ printf %d 2
+ [[ -n words ]]
+ unset -v words
+ eval 'words=("${@:3:2}")'
++ words=("${@:3:2}")
+ shift 4
+ ((  6  ))
+ case $1 in
+ [[ -n cword ]]
+ unset -v cword
+ eval 'cword="$3"'
++ cword=1
+ shift 3
+ ((  3  ))
+ case $1 in
+ [[ -n cur ]]
+ unset -v cur
+ eval 'cur="$3"'
++ cur='Network\ Mapping-_uIOdTfp6Pw.'
+ shift 3
+ ((  0  ))
+ [[ -n cur ]]
+ upvars+=("$vcur")
+ upargs+=(-v $vcur "$cur")
+ [[ -n cword ]]
+ upvars+=("$vcword")
+ upargs+=(-v $vcword "$cword")
+ [[ -n prev ]]
+ [[ 1 -ge 1 ]]
+ upvars+=("$vprev")
+ upargs+=(-v $vprev "${words[cword - 1]}")
+ [[ -n words ]]
+ upvars+=("$vwords")
+ upargs+=(-a${#words[@]} $vwords "${words[@]}")
+ ((  4  ))
+ local cur cword prev words
+ _upvars -v cur 'Network\ Mapping-_uIOdTfp6Pw.' -v cword 1 -v prev
touch -a2 words touch 'Network\ Mapping-_uIOdTfp6Pw.'
+ ((  13  ))
+ ((  13  ))
+ case $1 in
+ [[ -n cur ]]
+ unset -v cur
+ eval 'cur="$3"'
++ cur='Network\ Mapping-_uIOdTfp6Pw.'
+ shift 3
+ ((  10  ))
+ case $1 in
+ [[ -n cword ]]
+ unset -v cword
+ eval 'cword="$3"'
++ cword=1
+ shift 3
+ ((  7  ))
+ case $1 in
+ [[ -n prev ]]
+ unset -v prev
+ eval 'prev="$3"'
++ prev=touch
+ shift 3
+ ((  4  ))
+ case $1 in
+ [[ -n 2 ]]
+ printf %d 2
+ [[ -n words ]]
+ unset -v words
+ eval 'words=("${@:3:2}")'
++ words=("${@:3:2}")
+ shift 4
+ ((  0  ))
+ _variables
+ [[ Network\ Mapping-_uIOdTfp6Pw. =~ ^(\$\{?)([A-Za-z0-9_]*)$ ]]
+ return 1
+ [[ Network\ Mapping-_uIOdTfp6Pw. == @(?([0-9])<|?([0-9&])>?(>)|>&)* ]]
+ [[ touch == @(?([0-9])<|?([0-9&])>?(>)|>&) ]]
+ local i skip
+ (( i=1 ))
+ (( i < 2 ))
+ [[ Network\ Mapping-_uIOdTfp6Pw. == @(?([0-9])<|?([0-9&])>?(>)|>&)* ]]
+ i=2
+ (( 1 ))
+ (( i < 2 ))
+ [[ 1 -eq 0 ]]
+ prev=touch
+ [[ -n false ]]
+ _split_longopt
+ [[ Network\ Mapping-_uIOdTfp6Pw. == --?*=* ]]
+ return 1
+ return 0
+ case "${prev,,}" in
+ false
+ [[ Network\ Mapping-_uIOdTfp6Pw. == -* ]]
+ [[ touch == @(mk|rm)dir ]]
+ _filedir
+ local i 'IFS=
' xspec
+ _tilde 'Network\ Mapping-_uIOdTfp6Pw.'
+ local result=0
+ [[ Network\ Mapping-_uIOdTfp6Pw. == \~* ]]
+ return 0
+ local -a toks
+ local quoted x tmp
+ _quote_readline_by_ref 'Network\ Mapping-_uIOdTfp6Pw.' quoted
+ [[ Network\ Mapping-_uIOdTfp6Pw. == \'* ]]
+ printf -v quoted %q 'Network\ Mapping-_uIOdTfp6Pw.'
+ [[ Network\\\ Mapping-_uIOdTfp6Pw. == \$* ]]
++ compgen -d -- 'Network\\\ Mapping-_uIOdTfp6Pw.'
+ x=
+ [[ '' != -d ]]
+ xspec=
++ compgen -f -X '' -- 'Network\\\ Mapping-_uIOdTfp6Pw.'
+ x=
+ [[ -n '' ]]
+ [[ 0 -ne 0 ]]


Now what has happened in the above snippet is I tried to touch the
file Network\ Mapping-_uIOdTfp6Pw. <tab> so it gives me option of the
two but it doesn't give.

Any help would be appreciated.
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Mon, 17 Mar 2014 05:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to shirish शिरीष <shirishag75@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 17 Mar 2014 05:33:05 GMT) (full text, mbox, link).


Message #15 received at 741860@bugs.debian.org (full text, mbox, reply):

From: shirish शिरीष <shirishag75@gmail.com>
To: 741860@bugs.debian.org
Subject: some more digging about bash-completion.
Date: Mon, 17 Mar 2014 10:58:20 +0530
Hi all,
I did some more digging. Apparently it seems that as root
bash-completion performs it tasks correctly. It's only when as a user
it does not.

root@debian# touch Network\ Mapping-_uIOdTfp6Pw. <tab key>
Network Mapping-_uIOdTfp6Pw.mp4  Network Mapping-_uIOdTfp6Pw.srt

This is the desired effect.

As a user it has the same issue as before.

I saw in .bashrc

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

This has been borrowed from /etc/bash.bashrc . The only difference
between the two is there the same thing is commented while here it's
not.

Hopefully this will help shed light on something. Although I have to
say this was at least a year or so ago.
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Tue, 18 Mar 2014 12:33:08 GMT) (full text, mbox, link).


Acknowledgement sent to Wouter Bolsterlee <uws@xs4all.nl>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Tue, 18 Mar 2014 12:33:08 GMT) (full text, mbox, link).


Message #20 received at 741860@bugs.debian.org (full text, mbox, reply):

From: Wouter Bolsterlee <uws@xs4all.nl>
To: 741860@bugs.debian.org
Cc: shirish शिरीष <shirishag75@gmail.com>
Subject: Re: bash-completion 1:2.1-2 tab-completion is broken
Date: Tue, 18 Mar 2014 13:28:55 +0100
[Message part 1 (text/plain, inline)]
I experience the same issue. It could be the same issue as described
here:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1288031

    — Wouter


[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Tue, 18 Mar 2014 18:15:14 GMT) (full text, mbox, link).


Acknowledgement sent to shirish शिरीष <shirishag75@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Tue, 18 Mar 2014 18:15:14 GMT) (full text, mbox, link).


Message #25 received at 741860@bugs.debian.org (full text, mbox, reply):

From: shirish शिरीष <shirishag75@gmail.com>
To: Wouter Bolsterlee <uws@xs4all.nl>
Cc: 741860@bugs.debian.org
Subject: Re: bash-completion 1:2.1-2 tab-completion is broken
Date: Tue, 18 Mar 2014 23:41:24 +0530
at bottom :-

On 3/18/14, Wouter Bolsterlee <uws@xs4all.nl> wrote:
> I experience the same issue. It could be the same issue as described
> here:
> https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1288031
>
>     — Wouter

Hi all,
I saw the bug and simply commented the offending lines from my .bashrc
so there's no more :-

# enable bash completion in interactive shells
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi


in my  ~/.bashrc and it works at least for file-level completions on
the terminal emulator. So it's a sort of workaround. Looking forward
for the fix so I can re-enable it in my ~/.bashrc.
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Wed, 19 Mar 2014 00:21:20 GMT) (full text, mbox, link).


Acknowledgement sent to dapal@debian.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 19 Mar 2014 00:21:20 GMT) (full text, mbox, link).


Message #30 received at 741860@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 739835@bugs.debian.org
Cc: 741479@bugs.debian.org, shirish शिरीष <shirishag75@gmail.com>, Claudio Moretti <flyingstar16@gmail.com>, Joey Hess <joeyh@debian.org>, 741860@bugs.debian.org, 742071@bugs.debian.org, KatolaZ <v.nicosia@qmul.ac.uk>, 742054@bugs.debian.org, 741903@bugs.debian.org, Paul Brossier <piem@debian.org>, 740975@bugs.debian.org, Philipp Hagemeister <phihag@phihag.de>, Jean-Baka Domelevo Entfellner <domelevo@gmail.com>, Francesco Poli <invernomuto@paranoici.org>, Dan Jacobson <jidanni@jidanni.org>, JuanJo Ciarlante <jjo@canonical.com>, Matthew Gabeler-Lee <cheetah@fastcat.org>, Ville Skyttä <ville.skytta@iki.fi>
Subject: filename completion broken with bash 4.3
Date: Wed, 19 Mar 2014 01:17:17 +0100
forcemerge 739835 741479 741860 742071 742054 741903 740975
retitle 739835 filename completion broken with bash 4.3
severity 739835 important
tags 739835 upstream confirmed
thanks

Hello all,

(sorry for the long list of CC)

writing to you because you reported a bug within bash-completion, which is
likely caused by the upgrade of bash to 4.3.

I've added Ville Skyttä in CC too -- I stopped actively developing
bash-completion long ago, and I believe he's now the main upstream developer,
so keeping him in the mail loop.

Please, from now on, refer to bug #739835 for further posts.

Ville: it seems like
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835#15 contains a
patch: have you had the chance to look at it? It seems to me that it doesn't
solve the problems reported.

Thanks, and sorry for not being totally clueless,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174



Severity set to 'normal' from 'important' Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Wed, 19 Mar 2014 00:21:39 GMT) (full text, mbox, link).


Added tag(s) patch. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Wed, 19 Mar 2014 00:21:39 GMT) (full text, mbox, link).


Merged 739835 740975 741479 741860 741903 742054 742071 Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Wed, 19 Mar 2014 00:21:46 GMT) (full text, mbox, link).


Changed Bug title to 'filename completion broken with bash 4.3' from 'bash-completion 1:2.1-2 tab-completion is broken' Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Wed, 19 Mar 2014 00:21:52 GMT) (full text, mbox, link).


Severity set to 'important' from 'normal' Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Wed, 19 Mar 2014 00:21:58 GMT) (full text, mbox, link).


Added tag(s) upstream and confirmed. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Wed, 19 Mar 2014 00:22:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Wed, 19 Mar 2014 02:00:14 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Brossier <piem@debian.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 19 Mar 2014 02:00:14 GMT) (full text, mbox, link).


Message #47 received at 741860@bugs.debian.org (full text, mbox, reply):

From: Paul Brossier <piem@debian.org>
To: dapal@debian.org, 739835@bugs.debian.org
Cc: 741479@bugs.debian.org, shirish शिरीष <shirishag75@gmail.com>, Claudio Moretti <flyingstar16@gmail.com>, Joey Hess <joeyh@debian.org>, 741860@bugs.debian.org, 742071@bugs.debian.org, KatolaZ <v.nicosia@qmul.ac.uk>, 742054@bugs.debian.org, 741903@bugs.debian.org, 740975@bugs.debian.org, Philipp Hagemeister <phihag@phihag.de>, Jean-Baka Domelevo Entfellner <domelevo@gmail.com>, Francesco Poli <invernomuto@paranoici.org>, Dan Jacobson <jidanni@jidanni.org>, JuanJo Ciarlante <jjo@canonical.com>, Matthew Gabeler-Lee <cheetah@fastcat.org>, Ville Skyttä <ville.skytta@iki.fi>, control@bugs.debian.org
Subject: Re: filename completion broken with bash 4.3
Date: Tue, 18 Mar 2014 22:17:15 -0300
[Message part 1 (text/plain, inline)]
tags 739835 patch
thanks

06:28 < piem> am i the only one being struck by 741903?
06:33 < infinity> piem:
http://launchpadlibrarian.net/169422307/bash-completion_1%3A2.1-2ubuntu3_1%3A2.1-2ubuntu4.diff.gz
06:33  * infinity bugs jjo to forward that.
06:40 < infinity> piem: You might just want to grab the Ubuntu
bash-completion deb, it fixes a few bugs, I'll hunt down people to
forward it all.
06:40 < infinity>
https://launchpad.net/ubuntu/+source/bash-completion/1:2.1-2ubuntu4/+build/5810094
06:44 < piem> infinity: nice, thanks

On 03/18/2014 09:17 PM, David Paleino wrote:
> forcemerge 739835 741479 741860 742071 742054 741903 740975
> retitle 739835 filename completion broken with bash 4.3
> severity 739835 important
> tags 739835 upstream confirmed
> thanks
>
> Hello all,
>
> (sorry for the long list of CC)
>
> writing to you because you reported a bug within bash-completion, which is
> likely caused by the upgrade of bash to 4.3.
>
> I've added Ville Skyttä in CC too -- I stopped actively developing
> bash-completion long ago, and I believe he's now the main upstream developer,
> so keeping him in the mail loop.
>
> Please, from now on, refer to bug #739835 for further posts.
>
> Ville: it seems like
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835#15 contains a
> patch: have you had the chance to look at it? It seems to me that it doesn't
> solve the problems reported.
>
> Thanks, and sorry for not being totally clueless,
> David
>
   

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Wed, 19 Mar 2014 07:12:15 GMT) (full text, mbox, link).


Acknowledgement sent to Jean-Baka Domelevo Entfellner <domelevo@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 19 Mar 2014 07:12:15 GMT) (full text, mbox, link).


Message #52 received at 741860@bugs.debian.org (full text, mbox, reply):

From: Jean-Baka Domelevo Entfellner <domelevo@gmail.com>
To: Paul Brossier <piem@debian.org>, 740975@bugs.debian.org
Cc: dapal@debian.org, 739835@bugs.debian.org, 741479@bugs.debian.org, shirish शिरीष <shirishag75@gmail.com>, Claudio Moretti <flyingstar16@gmail.com>, Joey Hess <joeyh@debian.org>, 741860@bugs.debian.org, 742071@bugs.debian.org, KatolaZ <v.nicosia@qmul.ac.uk>, 742054@bugs.debian.org, 741903@bugs.debian.org, Philipp Hagemeister <phihag@phihag.de>, Francesco Poli <invernomuto@paranoici.org>, Dan Jacobson <jidanni@jidanni.org>, JuanJo Ciarlante <jjo@canonical.com>, Matthew Gabeler-Lee <cheetah@fastcat.org>, Ville Skyttä <ville.skytta@iki.fi>, control@bugs.debian.org
Subject: Re: Bug#740975: filename completion broken with bash 4.3
Date: Wed, 19 Mar 2014 09:08:24 +0200
Ok, thanks, any of the two patches proposed by JuanJo works fine for
me (Debian unstable, GNU bash version 4.3.0(1)-release, patching
bash-completion bash-completion version: 1:2.1-2).

Thanks,
   Jean-Baka

On Wed, Mar 19, 2014 at 3:17 AM, Paul Brossier <piem@debian.org> wrote:
> tags 739835 patch
> thanks
>
> 06:28 < piem> am i the only one being struck by 741903?
> 06:33 < infinity> piem:
> http://launchpadlibrarian.net/169422307/bash-completion_1%3A2.1-2ubuntu3_1%3A2.1-2ubuntu4.diff.gz
> 06:33  * infinity bugs jjo to forward that.
> 06:40 < infinity> piem: You might just want to grab the Ubuntu
> bash-completion deb, it fixes a few bugs, I'll hunt down people to
> forward it all.
> 06:40 < infinity>
> https://launchpad.net/ubuntu/+source/bash-completion/1:2.1-2ubuntu4/+build/5810094
> 06:44 < piem> infinity: nice, thanks
>
> On 03/18/2014 09:17 PM, David Paleino wrote:
>> forcemerge 739835 741479 741860 742071 742054 741903 740975
>> retitle 739835 filename completion broken with bash 4.3
>> severity 739835 important
>> tags 739835 upstream confirmed
>> thanks
>>
>> Hello all,
>>
>> (sorry for the long list of CC)
>>
>> writing to you because you reported a bug within bash-completion, which is
>> likely caused by the upgrade of bash to 4.3.
>>
>> I've added Ville Skyttä in CC too -- I stopped actively developing
>> bash-completion long ago, and I believe he's now the main upstream developer,
>> so keeping him in the mail loop.
>>
>> Please, from now on, refer to bug #739835 for further posts.
>>
>> Ville: it seems like
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835#15 contains a
>> patch: have you had the chance to look at it? It seems to me that it doesn't
>> solve the problems reported.
>>
>> Thanks, and sorry for not being totally clueless,
>> David
>>
>
>



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#741860; Package bash-completion. (Wed, 19 Mar 2014 10:09:18 GMT) (full text, mbox, link).


Acknowledgement sent to Vincenzo Nicosia <v.nicosia@qmul.ac.uk>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 19 Mar 2014 10:09:18 GMT) (full text, mbox, link).


Message #57 received at 741860@bugs.debian.org (full text, mbox, reply):

From: Vincenzo Nicosia <v.nicosia@qmul.ac.uk>
To: Jean-Baka Domelevo Entfellner <domelevo@gmail.com>
Cc: Paul Brossier <piem@debian.org>, <740975@bugs.debian.org>, <dapal@debian.org>, <739835@bugs.debian.org>, <741479@bugs.debian.org>, shirish शिरीष <shirishag75@gmail.com>, Claudio Moretti <flyingstar16@gmail.com>, Joey Hess <joeyh@debian.org>, <741860@bugs.debian.org>, <742071@bugs.debian.org>, <742054@bugs.debian.org>, <741903@bugs.debian.org>, Philipp Hagemeister <phihag@phihag.de>, Francesco Poli <invernomuto@paranoici.org>, Dan Jacobson <jidanni@jidanni.org>, JuanJo Ciarlante <jjo@canonical.com>, Matthew Gabeler-Lee <cheetah@fastcat.org>, Ville Skyttä <ville.skytta@iki.fi>, <control@bugs.debian.org>
Subject: Re: Bug#740975: filename completion broken with bash 4.3
Date: Wed, 19 Mar 2014 09:05:29 +0000
On Wed, Mar 19, 2014 at 09:08:24AM +0200, Jean-Baka Domelevo Entfellner wrote:
> Ok, thanks, any of the two patches proposed by JuanJo works fine for
> me (Debian unstable, GNU bash version 4.3.0(1)-release, patching
> bash-completion bash-completion version: 1:2.1-2).
> 

Is there a tiny hope we might have the patched packet in Jessie before
2015? :) I'm kidding, but seriously this is a quite basic packet used
by virtually all people who open a text shell (even once in a while),
and not a forgotten script used only by a handful of developers. Is
there anything we may do to speed up the process and have the patch
accepted in testing sooner?

Best

KatolaZ




Message #58 received at 739835-close@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 739835-close@bugs.debian.org
Subject: Bug#739835: fixed in bash-completion 1:2.1-3
Date: Wed, 19 Mar 2014 11:03:30 +0000
Source: bash-completion
Source-Version: 1:2.1-3

We believe that the bug you reported is fixed in the latest version of
bash-completion, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 739835@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <dapal@debian.org> (supplier of updated bash-completion package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 19 Mar 2014 11:44:27 +0100
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:2.1-3
Distribution: unstable
Urgency: medium
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Changed-By: David Paleino <dapal@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 496162 574950 665651 673235 680852 697513 698977 702498 704832 708173 737672 737881 739835 741657
Changes: 
 bash-completion (1:2.1-3) unstable; urgency=medium
 .
   * Import patch from Ubuntu:
     - fix_quote_readline_by_ref.patch, thanks to JuanJo Ciarlante
       (Closes: #739835):
       + avoid escaping 1st '~' (LP: #1288314)
       + avoid quoting if empty, else expansion without args only shows
         dirs (LP: #1288031)
       + replace double escaping to single (eg for completing file/paths
         with spaces)
     - words_bad_array_subscript.patch, thanks to Barry Warsaw
     - dpkg_ddeb.patch: dpkg also supports *.ddeb, thanks to Sebastien
       Bacher (LP: #568404, Closes: #737881)
     - disable_avahi_browse.patch: slow, and doesn't scale to big
       networks, thanks to Chris Jones (Closes: #574950, LP: #510591)
     - xine_add_more_formats.patch: add oga and ogx to multimedia players
       (Closes: #496162, LP: #311525)
   * debian/maintscript, debian/postinst:
     - clean etc conffiles on upgrade since completion files are in /usr
       with 2.0, thanks to Sebastien Bacher
   * debian/control: marked Multi-Arch: foreign
   * debian/patches/:
     - fix_gcc_detection.patch, correctly parses Debian's GCC version
       number, thanks to Tomas Janousek (Closes: #665651)
     - xpdf_support_compressed_pdf.patch, in Debian xpdf also supports
       compressed files, thanks to Alfredo Finelli (Closes: #702498)
     - dpkg_support_raw-extract_vextract.patch: add support for more
       options in dpkg-deb, thanks to Uwe Storbeck (Closes: #698977)
     - dpkg_fix_-W_option.patch: -W|--show doesn't support udebs/ddebs,
       thanks to Luca Capello (Closes: #697513)
     - aptitude_safe-upgrade.patch: safe-upgrade supports package names,
       thanks to Nicolas Le Cam (Closes: #673235)
     - ifconfig_locale.patch: _mac_addresses() didn't consider locale
       awareness of ifconfig, thanks to Thilo Six (Closes: #704832)
     - dont_return_from_sourced_script.patch: avoid problems with shells
       not supporting returning from a sourced script (Closes: #741657)
     - look_for_pod.patch: perldoc: look for .pod in addition to .pm
       files, thanks to Carl Hayter (Closes: #708173)
   * debian/extra/debhelper/dh_bash-completion: fix installation process
     when more than one "proper snippet" is being installed, thanks to
     Jean-Michel Vourgère (Closes: #680852)
   * Dropped completions included in util-linux (Closes: #737672)
Checksums-Sha1: 
 e9849707f765792d9227836eec5a9db90a1bcb0b 1377 bash-completion_2.1-3.dsc
 abd628e5dfef3242aa467277e4647a0ec0b13a7d 19408 bash-completion_2.1-3.debian.tar.xz
 f2a0edfbace7dfc007d629968e6eec180267c124 182124 bash-completion_2.1-3_all.deb
Checksums-Sha256: 
 2b44aeb674a9690c6af75957fa5308889277c9abd1a05143c81ccb4733e0a15f 1377 bash-completion_2.1-3.dsc
 8f48a945a680d9ab0da54be570929c33ae7bc5ec0f25fb6512fb75db1013ee3a 19408 bash-completion_2.1-3.debian.tar.xz
 d226ff84e0633c0ee4abdb9b2631fe0532b6c516f9d434a035633500811d9049 182124 bash-completion_2.1-3_all.deb
Files: 
 1ad095c77d5c9f34aa34d8822c52af4b 1377 shells standard bash-completion_2.1-3.dsc
 0d3f94bc45de05f6c05bfdf7d8d9a82e 19408 shells standard bash-completion_2.1-3.debian.tar.xz
 b3f48281983f26282a473b2a082d9786 182124 shells standard bash-completion_2.1-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlMpdqQACgkQ5qqQFxOSsXRWtwCfRpjyuFpSIdtHdUnGSM3nzZSv
5OUAn29tGWEKYQydzlajsOUrA45W4D/f
=67po
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 17 Apr 2014 07:25:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:30:55 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.