Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash genfun_has_readline
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 32

PostPosted: Mon May 20, 2024 3:23 pm    Post subject: bash genfun_has_readline Reply with quote

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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2732

PostPosted: Mon May 20, 2024 4:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 32

PostPosted: Mon May 20, 2024 4:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 998
Location: Somewhere in Denmark

PostPosted: Mon May 20, 2024 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 32

PostPosted: Tue May 21, 2024 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 998
Location: Somewhere in Denmark

PostPosted: Tue May 21, 2024 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 32

PostPosted: Wed May 22, 2024 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum