Re: Mulit-line aliases and PROMPT_COMMAND

2016-06-18 Thread Linda Walsh
Dan Douglas wrote: The 4.4 changes will make aliases even more interesting. --- Oh? Why is that? I.e. what's happening to aliases that will make them more "interesting"? BTW, are you using "interesting" in the same way as the saying "May you live in interesting times"?

Re: Mulit-line aliases and PROMPT_COMMAND

2016-06-02 Thread Dan Douglas
On Thu, Jun 2, 2016 at 7:18 PM, Grisha Levit wrote: > > On Thu, Jun 2, 2016 at 6:57 PM, Chet Ramey wrote: >> >> > Since bash 4.3 multi-line aliases interact very strangely >> >> And you're the first person to report them. I guess there aren't a lot of >> multi-line aliases out there. > > > I won

Re: Mulit-line aliases and PROMPT_COMMAND

2016-06-02 Thread Grisha Levit
On Thu, Jun 2, 2016 at 6:57 PM, Chet Ramey wrote: > > Since bash 4.3 multi-line aliases interact very strangely > > And you're the first person to report them. I guess there aren't a lot > of multi-line aliases out there. > I wonder if more crazy use cases will come out of the woodwork when RHE

Re: Mulit-line aliases and PROMPT_COMMAND

2016-06-02 Thread Chet Ramey
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 ever

Mulit-line aliases and PROMPT_COMMAND

2016-06-02 Thread Grisha Levit
Since bash 4.3 multi-line aliases interact very strangely, especially in connection with PROMPT_COMMAND. 1. PROMPT_COMMAND is executed after every line in the alias, rather than just before the prompt is drawn: alias a=$'echo 1\necho2' PROMPT_COMMAND='echo $HOSTNAME' $ a 1 home 2 home $ 2. I