You are not logged in.
Hi all.
Did a pacman -Syu yesterday, havn't done this for a while. After this, whenever starting a login shell, I'm getting the following:
-bash: /etc/profile.d/bash_completion.sh: No such file or directoryIt seems to be caused by sourcing /etc/profile. Now, my /etc/profile hasn't been changed.
[ndlarsen@slave ~]$ . /etc/profile
-bash: /etc/profile.d/bash_completion.sh: No such file or directory
[ndlarsen@slave ~]$ pacman -Qo /etc/profile
/etc/profile is owned by filesystem 2009.07-1
[ndlarsen@slave ~]$ pacman -Ss filesystem | grep core/filesystem
core/filesystem 2009.07-1 (base)
[ndlarsen@slave ~]$ pacman -Qk filesystem
filesystem: 89 total files, 0 missing file(s)
[ndlarsen@slave ~]$ pacman -Q bash-completion
bash-completion 1.0-3
[ndlarsen@slave ~]$ pacman -Ss bash-completion
extra/bash-completion 1.0-3
Programmable completion for the bash shell
[ndlarsen@slave ~]$ pacman -Qk bash-completion
bash-completion: 45 total files, 0 missing file(s)Now, I'm wondering if this is a bug or feature and what to do about it.
Cheers.
Last edited by ndlarsen (2009-10-30 12:32:54)
I made it long
as I lacked the time to make it short...
Offline
pastebin /etc/profile
Offline
It seems to be caused by sourcing /etc/profile. Now, my /etc/profile hasn't been changed.
[ndlarsen@slave ~]$ wget -O profile http://repos.archlinux.org/wsvn/packages/filesystem/repos/core-i686/profile?op=dl&rev=0
[ndlarsen@slave ~]$ diff profile /etc/profile && echo ...Done...
...Done...I made it long
as I lacked the time to make it short...
Offline
this
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -x $profile && . $profile
done
unset profile
fiis the only part that touches that dir. it doesnt specify a file name...
so it's /etc/profile.bash or /etc/bash.bashrc
Last edited by pacman (2009-10-30 10:12:27)
Offline
Well, no package seems to provide /etc/profile.d/bash_completion.sh. I'm suspecting it's being sourced (maybe indirectly) by an out-of-date script in /etc/profile.d/.
A few things to try:
Run bash with '--norc'.
Check for explicit sourcing:
$ grep bash_completion.sh /etc/profile.d/*Modify line 52 of /etc/profile to output the profile before sourcing it:
test -x $profile && echo $profile && . $profileLast edited by chpln (2009-10-30 10:47:09)
Offline
Correct, seems to be caused by /etc/profile.bash, which I neither have messed with, though difers for some reason.
[ndlarsen@slave ~]$ . /etc/profile.bash
-bash: /etc/profile.d/bash_completion.sh: No such file or directory
[ndlarsen@slave ~]$ wget -O profile.bash http://repos.archlinux.org/wsvn/packages/bash/repos/core-i686/profile.bash?op=dl&rev=0
[ndlarsen@slave ~]$ diff profile.bash /etc/profile.bash; echo ..Done...
25a26,29
>
> #. bash_completion
> . /etc/profile.d/bash_completion.sh
>
..Done...
[ndlarsen@slave ~]$ pacman -Qo /etc/profile.bash
/etc/profile.bash is owned by bash 4.0.033-1
[ndlarsen@slave ~]$ pacman -Q bash
bash 4.0.033-1Wonder if the devs have made changes to the svn entries.
Last edited by ndlarsen (2009-10-30 10:57:11)
I made it long
as I lacked the time to make it short...
Offline
profile.bash or bash.bashrc should source /etc/bash_completion instead, if you have it installed
Offline
Well, it seems that it was provided by bash-completion-1.0-2 but removed in version 1.0-3, no idea why atm.
I made it long
as I lacked the time to make it short...
Offline
So, /etc/profile.bash wasn't replaced when I updated from 4.0.028-1 to 4.0.033-1. There are no errors in /var/log/pacman.log related to this. What should the correct permissions for /etc/profile.bash be?
[ndlarsen@slave ~]$ ls -l /etc/profile.bash
-rw-r--r-- 1 root root 675 2009-08-25 08:49 /etc/profile.bashLast edited by ndlarsen (2009-10-30 11:43:57)
I made it long
as I lacked the time to make it short...
Offline
rw-r-r
you dont have pacsave or pacnew files?
bash completion isnt sourced as it used to be, you've had to modify profile.bash at one point because that file has never sourced bash completion that way ![]()
Last edited by pacman (2009-10-30 12:29:38)
Offline
Nope, no pacsave or pacnew files. Anyway, if I have I forgot about it. Well, going to edit it.
Cheers.
I made it long
as I lacked the time to make it short...
Offline