Setting HISTTIMEFORMAT is causing problems in >=bash-5.2

2024-06-05 Thread Thomas Deutschmann
Hello! I would like to report an issue with bash version >=5.2. For years, I have had the following line in my ~/.bashrc: export HISTTIMEFORMAT="[$(tput setaf 6)%F %T$(tput sgr0)]: " # colorful date This worked perfectly up to and including bash version 5.1.0(16). However, since bash versio

Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname

2019-07-24 Thread Thomas Deutschmann
arly don't like it, but our opinions only matter to us. OK :( Thank you for the explanation! -- Regards, Thomas Deutschmann / Gentoo Linux Developer C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5 signature.asc Description: OpenPGP digital signature

Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname

2019-07-24 Thread Thomas Deutschmann
ay, back to bash: So you are rejecting this patch, right? Maybe update man page at least to clarify that "\H" in contrast to "\h" is supposed to return the same value but _unfiltered_? Thanks. -- Regards, Thomas Deutschmann / Gentoo Linux Developer C4DD 695F A713 8F24 2AA1 563

Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname

2019-07-24 Thread Thomas Deutschmann
o hostname only (no FQDN) and set domain option in /etc/resolv.conf for example for FQDN. But maybe I am missing something. Thanks. -- Regards, Thomas Deutschmann / Gentoo Linux Developer C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5 signature.asc Description: OpenPGP digital signature

[PATCH] Fix \H: Use getaddrinfo to get full hostname

2019-07-24 Thread Thomas Deutschmann
At the moment, \h and \H used in prompt PS1 or PS2 will actually return the same value while manpage claims that \h should return hostname up to the first '.' (like `hostname`) and \H should return full hostname (like `hostname -f`). This commit will make bash use the same API like hostname comman

Bash will continue executing main code path instead of current code path on error

2019-04-18 Thread Thomas Deutschmann
test.sh: line 5: bar=${${foo}_blah}: bad substitution I run after the failing_function! Rest of the script Is my expectation wrong? I am really wondering that the script will continue but not in the current if clause... Tested with: > GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) --

failglob handling

2018-08-03 Thread Thomas Deutschmann
:\n:g' | > bash > bash: line 2: no match: /foo/bar/* > alive > $ echo "set -e; shopt -s failglob; echo /foo/bar/*; echo alive; " | sed 's:; > :\n:g' | bash > bash: line 3: no match: /foo/bar/* > $ -- Regards, Thomas Deutschmann / Gentoo Linux Developer C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5 signature.asc Description: OpenPGP digital signature