Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

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!
Tasklist

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

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

Loading...