FS#71002 - [bash] /etc/bash.bashrc: Use PROMPT_COMMAND as array
Attached to Project:
Arch Linux
Opened by Gamma _ (GammaFn) - Monday, 24 May 2021, 14:00 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 05 February 2023, 09:03 GMT
Opened by Gamma _ (GammaFn) - Monday, 24 May 2021, 14:00 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 05 February 2023, 09:03 GMT
|
Details
Description:
With Bash 5.1+, PROMPT_COMMAND can now be an array. We should use it as an array instead of appending to it as a scalar, which can be fragile. A knock-on effect of scalar PROMPT_COMMAND was discovered in community/toolbox: - https://github.com/containers/toolbox/pull/716 Additional info: * 5.1.008-1 Steps to reproduce: TERM='xterm' PROMPT_COMMAND=' ' bash Suggested fix: Replace the existing PROMPT_COMMAND scalar definitions with array definitions: PROMPT_COMMAND+=('printf ...') |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Sunday, 05 February 2023, 09:03 GMT
Reason for closing: Fixed
Additional comments about closing: 5.1.016-2
Sunday, 05 February 2023, 09:03 GMT
Reason for closing: Fixed
Additional comments about closing: 5.1.016-2

fixed on trunk.

bash-5.1.016-2