Am Fr., 23. Dez. 2022 um 05:39 Uhr schrieb tooth pik <
toot...@gmail.com>:
>
> it's not the PS2 prompt being used, it's the parts of PS1 that have to be evaluated
> are simply not being evaluated: the $(date '+%H:%M') and the \w
>
> when my PS1 is "$(date '+%H:%M') /w > " what winds up showing is the "> "
For me, this PS1 (with ``\w``, not ``/w``) works just fine, i.e.,
after having said ``vim`` or ``vim x``, the PS1 is printed as expected
after having left vim.
Is the behaviour on your side the same with a more simple PS1? What's
the outcome of ``type vim``?
You can possibly investigate if it is actually PS2 or not by setting
PS2 to some different string (``export PS2="fancy> "`` or the like).
- F.