Re: Surprising interaction between edit-and-execute-command, the cd builtin, and the prompt

2021-11-06 Thread Chet Ramey
On 11/6/21 9:57 AM, Piotr P. Stefaniak wrote: Hi, Using bash 5.0.17 edit-and-execute-command I type in something like cd /tmp save and exit to execute. $PWD is properly updated but the prompt doesn't reflect the change (not until the next time it is printed). The answer is the same as to this

Re: some string issue inside cmd not found handle

2021-11-06 Thread Alex fxmbsw7 Ratchev
On Sat, Nov 6, 2021, 19:04 Lawrence Velázquez wrote: > On Sat, Nov 6, 2021, at 2:41 AM, Alex fxmbsw7 Ratchev wrote: > > cat function/command_not_found_handle > > m "$BASH_COMMAND" > > > > type m > > m is aliased to `vim' > > > > type command_not_found_handle > > command_not_found_handle is a func

Re: some string issue inside cmd not found handle

2021-11-06 Thread Lawrence Velázquez
On Sat, Nov 6, 2021, at 2:41 AM, Alex fxmbsw7 Ratchev wrote: > cat function/command_not_found_handle > m "$BASH_COMMAND" > > type m > m is aliased to `vim' > > type command_not_found_handle > command_not_found_handle is a function > command_not_found_handle () > { > vim "$BASH_COMMAND" > } lma

Surprising interaction between edit-and-execute-command, the cd builtin, and the prompt

2021-11-06 Thread Piotr P. Stefaniak
Hi, Using bash 5.0.17 edit-and-execute-command I type in something like cd /tmp save and exit to execute. $PWD is properly updated but the prompt doesn't reflect the change (not until the next time it is printed). Piotr