Re: PROMPT_COMMAND is not executed after edit-and-execute-command

2021-03-18 Thread earnestly
On Thu, Mar 18, 2021 at 03:49:33PM -0400, Chet Ramey wrote: > Since readline prints the prompt as part of redisplay, and it doesn't know > anything about PROMPT_COMMAND or command execution, it doesn't execute it. That makes sense but doesn't bode well for my issue. Perhaps I can find a way to ex

Re: PROMPT_COMMAND is not executed after edit-and-execute-command

2021-03-18 Thread Chet Ramey
On 3/18/21 11:29 AM, earnestly wrote: When using edit-and-execute-command to edit the command-line I've noticed that PROMPT_COMMAND is not evaluated upon returning to the prompt It shouldn't be. Bash executes PROMPT_COMMAND before it calls readline to read the first line of a command. edit-and

PROMPT_COMMAND is not executed after edit-and-execute-command

2021-03-18 Thread earnestly
When using edit-and-execute-command to edit the command-line I've noticed that PROMPT_COMMAND is not evaluated upon returning to the prompt, e.g.: earnest i ~ PROMPT_COMMAND='echo foobar' foobar earnest i ~ set -x ++ echo foobar foobar earnest c ~ # use edit-and-execute-com