View previous topic :: View next topic |
Author |
Message |
Checko55 n00b
Joined: 02 Feb 2014 Posts: 32
|
Posted: Mon May 20, 2024 3:23 pm Post subject: bash genfun_has_readline |
|
|
Hi guys,
after an upgrade some days ago I get following message from bash when logging in:
-bash: genfun_has_readline: command not found
Since that the color prompt does not work properly anymore and all my aliases as well.
It is the same for root and my users.
My bashrc is located in /etc/bash
I tried to recompile readline and bash without any changes in that behaviour.
I just saw that in /etc/bash a bashrc.d was created with two new files like:
10-gentoo-color.bash
10-gentoo-title.bash
I couldn't find a solution so far.
Any hints what goes wrong here?
thank you in advance
Checko |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2732
|
Posted: Mon May 20, 2024 4:06 pm Post subject: |
|
|
Did you update /etc/bash/bashrc with the new one shipped alongside these? May not have been automatic if you have modified it.
It defines genfun_has_readline for the bashrc.d files to use, if you were modifying the bashrc itself I'd suggest moving your custom configs to bashrc.d as well and just keep the original (gentoo moved its more custom stuff like colors there as well for the sake of modifying or deleting as wanted). |
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 32
|
Posted: Mon May 20, 2024 4:53 pm Post subject: |
|
|
Hello!
I did not update with the new one and have only the one with my customizations like aliases.
I put my bashrc file in /etc/bash/bashrc.d/ with no effect.
The aliases and color settings still do not work.
The documentation tells nothing about these settings in those two files (title and color) in bashrc.d |
|
Back to top |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1006 Location: Somewhere in Denmark
|
Posted: Mon May 20, 2024 6:52 pm Post subject: |
|
|
I got this during switch from amd64 to ~amd64 - this included a glibc-update which prompted me to reboot, was gone after reboot.
Not sure exactly what package/ebuild caused the '-bash: genfun_has_readline: command not found' (I believe I replaced the bashrc with the new during cfg-update - not 100% though) |
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 32
|
Posted: Tue May 21, 2024 2:41 pm Post subject: |
|
|
Hi,
no matter where I put the bashrc, it has no effect or any changes visible.
Can I get the recommended configs from etc-update again? Maybe I can do a merge then... |
|
Back to top |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1006 Location: Somewhere in Denmark
|
Posted: Tue May 21, 2024 3:40 pm Post subject: |
|
|
Checko55 wrote: | Hi,
no matter where I put the bashrc, it has no effect or any changes visible.
Can I get the recommended configs from etc-update again? Maybe I can do a merge then... |
With the gentoo-repos in default location you can find the files in Code: | /var/db/repos/gentoo/app-shells/bash/files |
Specifically the bash_logout, the bashrc-r1 and the files in bashrc.d
bash_logout and bashrc are meant to go to /etc/bashrc - while the files in bashrc.d belongs in bashrc.d
(the dot-bash files goes to /etc/skel/.bash*)
or you can emerge -va1 app-shells/bash |
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 32
|
Posted: Wed May 22, 2024 3:27 pm Post subject: |
|
|
Hi again,
that was it.
I re-emerged bash like you wrote and used the recommended bashrc.
Customization are then taken from the bashrc.d files.
thanks for your help guys!
regards
Checko |
|
Back to top |
|
|
|