On 4/20/16 4:41 PM, Grisha Levit wrote: > Since bash 4.3 multi-line aliases interact very strangely, especially in > connection with PROMPT_COMMAND.
And you're the first person to report them. I guess there aren't a lot of multi-line aliases out there. > 1. PROMPT_COMMAND is executed after every line in the alias, rather than just > before the prompt is drawn: > > 2. If PROMPT_COMMAND contains a command substitution (even one that is not > executed!) then only the first line of the alias is executed These two are the same problem. > 3. If an alias contains a command substitution (this is regardless of > PROMPT_COMMAND being set) something really non-sensical happens. This one actually took some time to track down. All of these will be fixed in bash-4.4. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/