lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on LilyDev3 mkosi/debian/mkosi.postinst script


From: John Wheeler
Subject: Re: Question on LilyDev3 mkosi/debian/mkosi.postinst script
Date: Sat, 20 Nov 2021 13:01:09 -0600
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0

On 11/20/2021 5:57 AM, Michael Käppler wrote:
The thing is that it is part of a 'heredoc' string, which is written to
.bashrc.
Without escaping the '$', the shell will evaluate the result of

$(declare -F __git_ps1 &>/dev/null && __git_ps1 " (%s)")

before writing to .bashrc, which is not what we want.
Instead it should evaluate it at runtime.

So you should simply remove the backslash before $(declare ...

Got it.

Thank you,

John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]