On Nov 19, 2021, at 14:37, John Wheeler <[email protected]> wrote:
> I have used the .bashrc script extracted from
> LilyDev3/mkosi/debian/mkosi.postinst file in the past to set up a user for
> LilyPond development work and the PS1 value seemed to work. This morning I
> tried to do that again on a new machine and the PS1 value does not work
> correctly.
>
> The variable is set in a line:
>
> export PS1='[\u@\h:\W\$(declare -F __git_ps1 &>/dev/null && __git_ps1 "
> (%s)")]\$ '
>
> where the substring ":\W\$(declare" did not have the \ before the $ in the
> earlier version.
>
> Now, I am seeing the (declare -F ...") on my command line.
>
> I am wondering if the $ needs to be doubled, ie, ":\W\$$(declare" so that the
> "(declare" works correctly?
>
>
> Thank you,
>
> John Wheeler
>