bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use PROMPT_COMMAND(S) without breaking other scripts


From: Koichi Murase
Subject: Re: How to use PROMPT_COMMAND(S) without breaking other scripts
Date: Tue, 25 Aug 2020 04:37:06 +0900

2020-08-25 1:59 Martijn Dekker <martijn@inlv.org>:
> Is it too late? I think that would actually be cleaner than adding a
> separate array, per Koichi's report.

If it's not too late to change, converting PROMPT_COMMAND to an array
looks better to me too.  As for the problem of scripts doing
`PROMPT_COMMAND=command', as suggested in the last paragraph from
Martijn, I think it is enough to initialize PROMPT_COMMAND[0] by an
empty string.

--
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]