commit:     ea1e6de3a0d978559002aeed410bdc2b9717d35d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  6 22:09:51 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  6 22:10:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea1e6de3

app-shells/bash: propagate changes to latest alpha snapshot & live

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-shells/bash/bash-5.3_alpha_p20240628.ebuild | 22 +++++++++++-----------
 app-shells/bash/bash-9999.ebuild                | 22 +++++++++++-----------
 2 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/app-shells/bash/bash-5.3_alpha_p20240628.ebuild 
b/app-shells/bash/bash-5.3_alpha_p20240628.ebuild
index cbe731019ccf..3dbf9e257f1b 100644
--- a/app-shells/bash/bash-5.3_alpha_p20240628.ebuild
+++ b/app-shells/bash/bash-5.3_alpha_p20240628.ebuild
@@ -320,7 +320,7 @@ src_install() {
 
        insinto /etc/bash/bashrc.d
        my_prefixify DIR_COLORS "${FILESDIR}"/bashrc.d/10-gentoo-color.bash | 
newins - 10-gentoo-color.bash
-       doins "${FILESDIR}"/bashrc.d/10-gentoo-title.bash
+       newins "${FILESDIR}"/bashrc.d/10-gentoo-title-r1.bash 
10-gentoo-title.bash
        if [[ ! ${EPREFIX} ]]; then
                doins "${FILESDIR}"/bashrc.d/15-gentoo-bashrc-check.bash
        fi
@@ -381,26 +381,26 @@ pkg_postinst() {
        read -r old_ver <<<"${REPLACING_VERSIONS}"
        if [[ ! $old_ver ]]; then
                :
-       elif ver_test "$old_ver" -ge "5.2" && ver_test "$old_ver" -ge 
"5.2_p26-r6"; then
-               return
-       elif ver_test "$old_ver" -lt "5.2" && ver_test "$old_ver" -ge 
"5.1_p16-r13"; then
+       elif ver_test "$old_ver" -ge "5.2" && ver_test "$old_ver" -ge 
"5.2_p26-r7"; then
                return
        fi
 
        while read -r; do ewarn "${REPLY}"; done <<'EOF'
-Files situated under /etc/bash/bashrc.d must now have a suffix of .sh or .bash.
+Files under /etc/bash/bashrc.d must now have a suffix of .sh or .bash.
 
 Gentoo now defaults to defining PROMPT_COMMAND as an array. Depending on the
-characteristics of the operating environment, this array may contain a command
-to set the terminal's window title. Those already choosing to customise the
+characteristics of the operating environment, it may contain a command to set
+the terminal's window title. Those who were already choosing to customise the
 PROMPT_COMMAND variable are now advised to append their commands like so:
 
 PROMPT_COMMAND+=('custom command goes here')
 
-Gentoo no longer defaults to having bash manipulate the window title in the 
case
-that the terminal is controlled by sshd(8), unless screen or tmux are in use.
-Those wanting to set the title unconditionally may adjust ~/.bashrc - or create
-a custom /etc/bash/bashrc.d drop-in - to set PROMPT_COMMMAND like so:
+Gentoo no longer defaults to having bash set the window title in the case
+that the terminal is controlled by sshd(8), unless screen or tmux are in use
+or the terminal reliably supports saving and restoring the title (as
+alacritty and foot do). Those wanting to set the title unconditionally may
+adjust ~/.bashrc - or create a custom /etc/bash/bashrc.d drop-in - to set
+PROMPT_COMMMAND like so:
 
 PROMPT_COMMAND=(genfun_set_win_title)
 

diff --git a/app-shells/bash/bash-9999.ebuild b/app-shells/bash/bash-9999.ebuild
index cbe731019ccf..3dbf9e257f1b 100644
--- a/app-shells/bash/bash-9999.ebuild
+++ b/app-shells/bash/bash-9999.ebuild
@@ -320,7 +320,7 @@ src_install() {
 
        insinto /etc/bash/bashrc.d
        my_prefixify DIR_COLORS "${FILESDIR}"/bashrc.d/10-gentoo-color.bash | 
newins - 10-gentoo-color.bash
-       doins "${FILESDIR}"/bashrc.d/10-gentoo-title.bash
+       newins "${FILESDIR}"/bashrc.d/10-gentoo-title-r1.bash 
10-gentoo-title.bash
        if [[ ! ${EPREFIX} ]]; then
                doins "${FILESDIR}"/bashrc.d/15-gentoo-bashrc-check.bash
        fi
@@ -381,26 +381,26 @@ pkg_postinst() {
        read -r old_ver <<<"${REPLACING_VERSIONS}"
        if [[ ! $old_ver ]]; then
                :
-       elif ver_test "$old_ver" -ge "5.2" && ver_test "$old_ver" -ge 
"5.2_p26-r6"; then
-               return
-       elif ver_test "$old_ver" -lt "5.2" && ver_test "$old_ver" -ge 
"5.1_p16-r13"; then
+       elif ver_test "$old_ver" -ge "5.2" && ver_test "$old_ver" -ge 
"5.2_p26-r7"; then
                return
        fi
 
        while read -r; do ewarn "${REPLY}"; done <<'EOF'
-Files situated under /etc/bash/bashrc.d must now have a suffix of .sh or .bash.
+Files under /etc/bash/bashrc.d must now have a suffix of .sh or .bash.
 
 Gentoo now defaults to defining PROMPT_COMMAND as an array. Depending on the
-characteristics of the operating environment, this array may contain a command
-to set the terminal's window title. Those already choosing to customise the
+characteristics of the operating environment, it may contain a command to set
+the terminal's window title. Those who were already choosing to customise the
 PROMPT_COMMAND variable are now advised to append their commands like so:
 
 PROMPT_COMMAND+=('custom command goes here')
 
-Gentoo no longer defaults to having bash manipulate the window title in the 
case
-that the terminal is controlled by sshd(8), unless screen or tmux are in use.
-Those wanting to set the title unconditionally may adjust ~/.bashrc - or create
-a custom /etc/bash/bashrc.d drop-in - to set PROMPT_COMMMAND like so:
+Gentoo no longer defaults to having bash set the window title in the case
+that the terminal is controlled by sshd(8), unless screen or tmux are in use
+or the terminal reliably supports saving and restoring the title (as
+alacritty and foot do). Those wanting to set the title unconditionally may
+adjust ~/.bashrc - or create a custom /etc/bash/bashrc.d drop-in - to set
+PROMPT_COMMMAND like so:
 
 PROMPT_COMMAND=(genfun_set_win_title)
 

Reply via email to