it's still doing it, but "it" isn't what i thought it was 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 "> " so there appears to be an evaluation of PS1 being skipped... On Sat, Dec 17, 2022 at 1:25 PM Bram Moolenaar <[email protected]> wrote: > > > when i set PS1 to '$(date "+%H:%M") \w> ' in my ~/.bashrc i get a bash > > prompt with current time of day when i hit enter, current PWD, a > > greater than sign, and a space > > > > just enter "echo $PS1" to see how yours is set > > > > echo $TERM returns xterm > > > > in bash the PS2 prompt is for when you are inside some functioning > > process but it needs input > > Aha, you are talking about bash. > > I don't know how bash decides to show $PS2 and how Vim can cause that. > I also cannot reproduce the problem. Perhaps someone can look into it. > > -- > Computers are not intelligent. They only think they are. > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net > \\\ > /// > \\\ > \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ > /// > \\\ help me help AIDS victims -- http://ICCF-Holland.org > /// > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CALfSX1yV_NC8B5QYY51kEnQ79qhiyTLgNeOdiVBo-U5bM6_C4g%40mail.gmail.com.
