Ihor Radchenko <[email protected]> writes:

> There is something weird about the output zsh produces:
>
> "echo $SHELL\33[?2004l\15\15\n/bin/bash\n%                                    
>                                                       \15 \15\15𒆸 
> \33[?2004hecho 'org_babel_sh_eoe'\33[?2004l\15\15\norg_babel_sh_eoe\n%        
>                                                                               
>     \15 \15\15𒆸 \33[?2004h" 
>
> Note the many \15 (\r) before 𒆸 prompt and all those ANSI escapes.
>
> Org gets confused by such awkward formatting and completely messes
> things up.

It took a long time, but I think I finally solved the mystery.
- %[ \r]+ is "promptcr" in zsh terminology
- ESC [?2004l and ESC [?2004h are bracketed paste indicators

Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=664b23c6d

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to