Package: posh
Version: 0.13.1

posh(1) on PS1
> The primary prompt for interactive shells. The prompt is printed
> verbatim (i.e., no substitutions are done).

However, POSIX 1003.1-2017 on PS1 suggests
> Each time an interactive shell is ready to read a command, the
> value of this variable shall be subjected to parameter expansion
> and written to standard error.

Here's a transcript
$ PS1='$(echo "$PWD") $'
$(echo "$PWD") $ # PS1 is not expanded

Reply via email to