Kerin Millar 68c208ecd6 app-shells/bash: uncouple 10-gentoo-color.bash; warn of bad .bashrc
Some users choose to manage /etc/bash/bashrc directly and disregard any
of its updates outright. Additionally, some users have ~/.bashrc as a
copy of ${FILESDIR}/bashrc which is either exact or which contains only
trivial modifications, meaning that the bashrc.d drop-ins end up being
sourced twice. For both of these scenarios, users will presently
encounter a diagnostic message indicating that the genfun_has_readline
function does not exist. In turn, that is because the function is
declared by /etc/bash/bashrc, while also being used by
/etc/bash/bashrc.d/10-gentoo-color.bash.

Since there is no particular need for 10-gentoo-color.bash to be coupled
in this manner, jettison the function. Instead, have bashrc consider the
exit status of the "shopt -s no_empty_cmd_completion" command and have
10-gentoo-color.bash perform its own test.

Additionally, implement a new bashrc.d drop-in named
"15-gentoo-bashrc-check.bash". Its purpose is to check whether ~/.bashrc
exists as a copy of ${FILESDIR}/bashrc and instruct the user as to how
to remedy the situation. After performing the check, it touches a file
under ${TMPDIR} so that it can subsequently avoid driving the user mad.
I recommend that this drop-in be removed one year hence. I disliked
having to do this but consider it to be in the public interest.

Signed-off-by: Kerin Millar <kfm@plushkava.net>
Bug: https://bugs.gentoo.org/934523
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-20 18:53:44 +01:00
2024-06-20 12:39:18 -05:00
2024-06-18 21:10:22 +02:00
2024-06-20 18:33:09 +02:00
2024-06-18 00:29:34 +02:00
2024-06-20 19:44:34 +03:00
2024-06-11 09:01:01 +03:00
2024-06-19 18:29:31 +02:00
2024-06-09 13:35:54 +01:00
2024-06-20 18:51:43 +03:00
2024-06-17 20:49:47 +02:00
2024-06-15 17:56:56 +03:00
2024-06-16 10:59:35 +02:00
2024-06-10 13:30:35 +03:00
2024-06-18 17:07:12 +02:00
2024-06-20 19:44:34 +03:00
2024-06-15 10:42:28 +02:00
2024-06-20 20:49:09 +03:00
2024-06-19 06:28:03 +02:00
2024-06-20 13:21:59 +02:00
2024-06-17 22:01:08 +03:00
2024-06-20 10:57:19 +01:00
2024-06-03 23:15:04 +02:00
2024-06-19 15:20:24 +02:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%