[Bug 869457] New: shell: autocompletion of aliases of ls of directories adds space instead of /
https://bugzilla.novell.com/show_bug.cgi?id=869457 https://bugzilla.novell.com/show_bug.cgi?id=869457#c0 Summary: shell: autocompletion of aliases of ls of directories adds space instead of / Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: martin@oneiros.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 This is a regression from 12.3. I have these aliases: alias l='ls -alF' alias la='ls -la' alias ll='ls -l' alias ls='_ls' alias ls-l='ls -l' If I do an "l /etc" and press tab, a space is added to the end of the line instead of a "/". If I do ls -alF and press tab, a "/" is added. Installed bash-completion packages: subversion-bash-completion-1.8.8-156.4.noarch bash-completion-2.1-3.1.2.noarch
rpm -qi bash Name : bash Version : 4.2 Release : 68.1.5 Architecture: x86_64 Install Date: So 02 Mär 2014 18:12:48 CET Group : System/Shells Size : 720796 License : GPL-3.0+ Signature : RSA/SHA256, Sa 28 Sep 2013 01:34:05 CEST, Key ID b88b2fd43dbdc284 Source RPM : bash-4.2-68.1.5.src.rpm Build Date : Sa 28 Sep 2013 01:33:27 CEST Build Host : build13 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : http://www.gnu.org/software/bash/bash.html Summary : The GNU Bourne-Again Shell Description : Bash is an sh-compatible command interpreter that executes commands read from standard input or from a file. Bash incorporates useful features from the Korn and C shells (ksh and csh). Bash is intended to be a conformant implementation of the IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2). Distribution: openSUSE 13.1
Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c
zhang jiajun
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c2
Martin Schröder
Can not reproduce werner@linux:~> ls /etc<TAB>
echo $BASH_VERSION 4.2.45(1)-release rpm -q bash-completion bash-completion-2.1-3.1.2.noarch complete -p ls complete -o filenames -F _longopt ls compopt -D compopt +o bashdefault +o default +o dirnames +o filenames +o nospace +o
Try "l /etc/<TAB>" plusdirs -D
grep _longopt /usr/share/bash-completion/* -rls /usr/share/bash-completion/bash_completion /usr/share/bash-completion/completions/xm /usr/share/bash-completion/completions/abook alias | grep ls alias dir='ls -l' alias l='ls -alF' alias la='ls -la' alias ll='ls -l' alias ls='_ls' alias ls-l='ls -l' alias unmount='echo "Error: Try the command: umount" 1>&2; false' alias you='if test "$EUID" = 0 ; then /sbin/yast2 online_update ; else su - -c "/sbin/yast2 online_update" ; fi'
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c4
Martin Schröder
werner@linux:~> complete -p l complete -F _minimal l
complete -p l bash: complete: l: Keine Komplettierung angegeben.
And now? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c5
--- Comment #5 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c6
--- Comment #6 from Dr. Werner Fink
... show me the output of
shopt autocd off cdable_vars off cdspell off checkhash off checkjobs off checkwinsize on cmdhist on compat31 off compat32 off compat40 off compat41 off
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c7
--- Comment #7 from Martin Schröder
printenv | grep CD
empty At this point I believe that I somehow misconfigured the system... :-( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c8
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c9
--- Comment #9 from Martin Schröder
(In reply to comment #7)
I've the same output of `shopt' and `printenv | grep CD' ...
If you have bash-completion installed you should see
werner@linux:~> set | sed -rn '/^_completion_loader/,/^}/p' _completion_loader () { local compfile=./completions; [[ $BASH_SOURCE == */* ]] && compfile="${BASH_SOURCE%/*}/completions"; compfile+="/${1##*/}"; [[ -f "$compfile" ]] && . "$compfile" &>/dev/null && return 124; complete -F _minimal "$1" && return 124 } werner@linux:~> complete | grep -e -D complete -F _completion_loader -D
set | sed -rn '/^_completion_loader/,/^}/p' _completion_loader () { local compfile=./completions; [[ $BASH_SOURCE == */* ]] && compfile="${BASH_SOURCE%/*}/completions"; compfile+="/${1##*/}"; [[ -f "$compfile" ]] && . "$compfile" &>/dev/null && return 124; complete -F _minimal "$1" && return 124 } complete | grep -e -D complete -F _completion_loader -D rpm -qi aaa_base-extras Name : aaa_base-extras Version : 13.1 Release : 16.34.1 Architecture: x86_64 Install Date: So 02 Mär 2014 18:17:44 CET Group : System/Fhs Size : 45740 License : GPL-2.0+ Signature : RSA/SHA256, Do 30 Jan 2014 12:26:55 CET, Key ID b88b2fd43dbdc284 Source RPM : aaa_base-13.1-16.34.1.src.rpm Build Date : Mo 27 Jan 2014 11:23:09 CET Build Host : build32 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : https://github.com/openSUSE/aaa_base Summary : SUSE Linux Base Package (recommended part) Description : The parts of aaa_base that should be installed by default but are not strictly required to run a system. (Shell aliases, bash completions and convenience hacks). Distribution: openSUSE 13.1
... compare with bug #851908 that is you may also update osc
osc is not installed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c10
--- Comment #10 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c11
--- Comment #11 from Martin Schröder
The problem is without reproducing it I'm not able to fix something.
I understand.
You may try to to add a fresh user and try if this user does see the same behaviour.
I just tried that; he does. :-( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c12
--- Comment #12 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c13
--- Comment #13 from Martin Schröder
Is there any /etc/bash.bashrc.local and/or /etc/profile.local on your system?
cat /etc/bash.bashrc.local PATH=$PATH:/usr/sbin
No /etc/profile.local
You may start a bash with
bash --noprofile --norc
and then source the completion
. /usr/share/bash-completion/bash_completion
and retry you check.
That works. %-{ bash --noprofile: shows the bug bash --norc: no problem -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=869457
https://bugzilla.novell.com/show_bug.cgi?id=869457#c14
--- Comment #14 from Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com