[opensuse] Bash completion worse since last update
Just recently made an update because of glibc bug. Since then the bash completion or alias works completely different and is - in my opinion- unusable. Previous to that when I did ll direcory the cursor stopped after directory/ so that I could simply go on typing further directory names. Now it stops after directory * ( * = cursor, one space between the directory and cursor) I have to go back with backspace, type in '/' and then go on. Much more complicated. I know that "ll" is an alias but what changed for alias ll='ls -l' ? I cannot see any changes in /etc/profile.d for that. Did bash change somehow? Thanks in advance -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/28/2016 07:58 AM, Markus Egg wrote:
Just recently made an update because of glibc bug. Since then the bash completion or alias works completely different and is - in my opinion- unusable.
Previous to that when I did ll direcory the cursor stopped after directory/ so that I could simply go on typing further directory names.
Now it stops after directory * ( * = cursor, one space between the directory and cursor) I have to go back with backspace, type in '/' and then go on. Much more complicated.
I know that "ll" is an alias but what changed for alias ll='ls -l' ? I cannot see any changes in /etc/profile.d for that. Did bash change somehow?
You'll have to be more specific about which version of the system, glibc, and the completion package. I get anton@Mainbox:~> type ll ll is aliased to `ls -l' anton@Mainbox:~> ll PDF/ Display all 589 possibilities? (y or n) That's me typing "PDF" then tab. I have anton@Mainbox:~> rpm -qa| grep completion systemd-bash-completion-210-40.1.noarch bash-completion-2.1-3.1.2.noarch anton@Mainbox:~> rpm -qa| grep glibc glibc-locale-2.18-4.44.1.x86_64 glibc-extra-2.18-4.44.1.x86_64 glibc-i18ndata-2.18-4.44.2.noarch glibc-2.18-4.44.1.x86_64 What do you have? Please: no systemd rants. Are you sure that you are initializing the package in your ~/.profile or ~/bash_profile?
Thanks in advance
-- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 28/02/16 um 14:16 schrieb Anton Aylward:
anton@Mainbox:~> rpm -qa| grep completion systemd-bash-completion-210-40.1.noarch bash-completion-2.1-3.1.2.noarch
anton@Mainbox:~> rpm -qa| grep glibc glibc-locale-2.18-4.44.1.x86_64 glibc-extra-2.18-4.44.1.x86_64 glibc-i18ndata-2.18-4.44.2.noarch glibc-2.18-4.44.1.x86_64
hmm, I updated glibc but only got 2.18-4.41.2 :-( Just started updating but I get constant timeouts for http://download.opensuse.org/update/13.1/ with my LTE connection . glibc-extra-2.18-4.44.1.x86_64.rpm seems to fail constantly. :-( Is there something wrong with the repo? BR -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-02-28 15:32, Markus Egg wrote:
Is there something wrong with the repo?
Typically it would be with the mirror you get. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlbTDFQACgkQja8UbcUWM1zJ4wD9HCa06IzXixv4VLqgCTmflwe0 0lK0cW1TevFMNwTP+xgBAIuMflEz8XPrQUKwc7Z/tK3k2gkSJCcfWi/gz9xizZza =Yz8u -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/28/2016 09:32 AM, Markus Egg wrote:
Am 28/02/16 um 14:16 schrieb Anton Aylward:
anton@Mainbox:~> rpm -qa| grep completion systemd-bash-completion-210-40.1.noarch bash-completion-2.1-3.1.2.noarch
anton@Mainbox:~> rpm -qa| grep glibc glibc-locale-2.18-4.44.1.x86_64 glibc-extra-2.18-4.44.1.x86_64 glibc-i18ndata-2.18-4.44.2.noarch glibc-2.18-4.44.1.x86_64
hmm, I updated glibc but only got 2.18-4.41.2 :-(
$zypper info glibc Information for package glibc: ------------------------------ Repository: openSUSE-13.1-Update Name: glibc Version: 2.18-4.44.1 Arch: x86_64 Vendor: openSUSE Installed: Yes Status: up-to-date Installed Size: 6.3 MiB
Just started updating but I get constant timeouts for http://download.opensuse.org/update/13.1/ with my LTE connection . glibc-extra-2.18-4.44.1.x86_64.rpm seems to fail constantly. :-( Is there something wrong with the repo?
I too am using http://download.opensuse.org/update/13.1/ Yo do realise that that is not the 'real' site, its handled with mirrors. Have you tried accessing the mirror sites directly? The step-and-repeat trying to find one is maybe what is doing the timeout. Nevertheless: # ping download.opensuse.org PING download.opensuse.org (195.135.221.134) 56(84) bytes of data. 64 bytes from ftp.opensuse.org (195.135.221.134): icmp_seq=1 ttl=49 time=131 ms 64 bytes from ftp.opensuse.org (195.135.221.134): icmp_seq=2 ttl=49 time=134 ms 64 bytes from ftp.opensuse.org (195.135.221.134): icmp_seq=3 ttl=49 time=133 ms 64 bytes from ftp.opensuse.org (195.135.221.134): icmp_seq=4 ttl=49 time=146 ms 64 bytes from ftp.opensuse.org (195.135.221.134): icmp_seq=5 ttl=49 time=144 ms 64 bytes from ftp.opensuse.org (195.135.221.134): icmp_seq=6 ttl=49 time=159 ms But then again, Sunday morning, perhaps the web service is down for maintenance or the build is refreshing. Have patience, Grasshopper! -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/28/2016 05:16 AM, Anton Aylward wrote:
On 02/28/2016 07:58 AM, Markus Egg wrote:
Just recently made an update because of glibc bug. Since then the bash completion or alias works completely different and is - in my opinion- unusable.
Previous to that when I did ll direcory the cursor stopped after directory/ so that I could simply go on typing further directory names.
Now it stops after directory * ( * = cursor, one space between the directory and cursor) I have to go back with backspace, type in '/' and then go on. Much more complicated.
I know that "ll" is an alias but what changed for alias ll='ls -l' ? I cannot see any changes in /etc/profile.d for that. Did bash change somehow?
You'll have to be more specific about which version of the system, glibc, and the completion package.
I get
anton@Mainbox:~> type ll ll is aliased to `ls -l' anton@Mainbox:~> ll PDF/ Display all 589 possibilities? (y or n)
That's me typing "PDF" then tab.
I have
anton@Mainbox:~> rpm -qa| grep completion systemd-bash-completion-210-40.1.noarch bash-completion-2.1-3.1.2.noarch
anton@Mainbox:~> rpm -qa| grep glibc glibc-locale-2.18-4.44.1.x86_64 glibc-extra-2.18-4.44.1.x86_64 glibc-i18ndata-2.18-4.44.2.noarch glibc-2.18-4.44.1.x86_64
On 13.2 I have: jsa@poulsbo:~> rpm -qa| grep glibc glibc-extra-2.19-16.22.2.x86_64 linux-glibc-devel-3.16-2.1.7.noarch glibc-devel-2.19-16.22.2.x86_64 glibc-32bit-2.19-16.22.2.x86_64 glibc-locale-2.19-16.22.2.x86_64 glibc-locale-32bit-2.19-16.22.2.x86_64 glibc-i18ndata-2.19-16.22.2.noarch glibc-2.19-16.22.2.x86_64 -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/28/2016 04:58 AM, Markus Egg wrote:
Previous to that when I did ll direcory the cursor stopped after directory/ so that I could simply go on typing further directory names.
Now it stops after directory * ( * = cursor, one space between the directory and cursor) I have to go back with backspace, type in '/' and then go on. Much more complicated.
Mine behaves as before on 13.2 (the way Marcus described first above.) Markus: Is this always the case, everywhere? Is there a chance that there exists a file of the same name as the directory one level above the directory? Is this in any way related to glibc? If so its not immediately obvious. -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 28/02/16 um 19:58 schrieb John Andersen:
On 02/28/2016 04:58 AM, Markus Egg wrote:
Previous to that when I did ll direcory the cursor stopped after directory/ so that I could simply go on typing further directory names.
Now it stops after directory * ( * = cursor, one space between the directory and cursor) I have to go back with backspace, type in '/' and then go on. Much more complicated.
Mine behaves as before on 13.2 (the way Marcus described first above.)
Markus: Is this always the case, everywhere? Is there a chance that there exists a file of the same name as the directory one level above the directory?
Is this in any way related to glibc? If so its not immediately obvious.
Hello, It is always like that with 'ls' in every directory and up to now it does not seem to depend on the content of the directory. Very annoying. Where can I normally set the completion behaviour of bash? Up to now I never needed to change anything there. :-( /etc/profile.d/bash_completion.sh is dated Sep 27 2013, so no change there. GNU bash, version 4.2.53(1)-release (x86_64-suse-linux-gnu) more /etc/profile.d/bash_completion.sh # Check for interactive bash and that we haven't already been sourced. [ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION_COMPAT_DIR" ] && return # Check for recent enough version of bash. bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} if [ $bmajor -gt 4 ] || [ $bmajor -eq 4 -a $bminor -ge 1 ]; then [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \ . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then # Source completion code. . /usr/share/bash-completion/bash_completion fi fi unset bash bmajor bminor ~/.config/bash_completion does not exist /usr/share/bash-completion/bash_completion is also dated Sep 27 2013 But there seem to be changes in /usr/share/bash-completion/completions Feb 22 which fits to the date of update. I am not an expert in bash completion. What may cause a change of ls behaviour ('cd' does the same as before, 'cd' and 'ls' behaved in the same way before that update)? Thanks in advance. ME -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 03/05/2016 07:19 AM, MarkusGMX wrote:
I am not an expert in bash completion.
Neither am I, but in my 13.1 system the code to run what you describe is in /etc/bash.bashrc 256 # 257 # Expert mode: if we find $HOME/.bash.expert we skip our settings 258 # used for interactive completion and read in the expert file. 259 # 260 if test "$is" = "bash" -a -r $HOME/.bash.expert ; then 261 . $HOME/.bash.expert 262 elif test "$is" = "bash" ; then 263 # Complete builtin of the bash 2.0 and higher 264 case "$BASH_VERSION" in 265 [2-9].*) 266 if test -e /etc/bash_completion ; then 267 . /etc/bash_completion 268 elif test -s /etc/profile.d/bash_completion.sh ; then 269 . /etc/profile.d/bash_completion.sh 270 elif test -s /etc/profile.d/complete.bash ; then 271 . /etc/profile.d/complete.bash 272 fi 273 for s in /etc/bash_completion.d/*.sh ; do 274 test -r $s && . $s 275 done 276 if test -e $HOME/.bash_completion ; then 277 . $HOME/.bash_completion 278 fi 279 if test -f /etc/bash_command_not_found ; then 280 . /etc/bash_command_not_found 281 fi 282 ;; 283 *) ;; 284 esac 285 fi The issue is how do you get to execute that code in the current shell? Somewhere there should be a . /etc/bash.bashrc If you don't invoke from your own ~/.bashrc then it must come from /etc/profile How do you source /etc/profile? Well *I* have $ grep "/etc/profile" ~/.profile ~/.bashrc ~/.bash_profile /home/anton/.profile:test -z "$PROFILEREAD" && . /etc/profile || true /home/anton/.bash_profile:test -z "$PROFILEREAD" && . /etc/profile || true So the question is a) do you? and b) how do you start up your bash shell? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Anton Aylward
-
Carlos E. R.
-
John Andersen
-
Markus Egg
-
MarkusGMX