Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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 Andreas Radke (AndyRTR) - Monday, 24 May 2021, 17:42 GMT
Task Type Feature Request
Category Packages: Core
Status Assigned
Assigned To Felix Yan (felixonmars)
Levente Polyak (anthraxx)
Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No



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:


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