Ps1 pwd not updating
These lines shall be parsed using two major modes: ordinary token recognition and processing of here-documents.
The application shall quote the following characters if they are to represent themselves: shall retain its special meaning introducing parameter expansion (see Parameter Expansion), a form of command substitution (see Command Substitution), and arithmetic expansion (see Arithmetic Expansion).If the output contains any null bytes, the behavior is unspecified.Within the backquoted style of command substitution, .In each case that a value of word is needed (based on the state of parameter, as described below), word shall be subjected to tilde expansion, parameter expansion, command substitution, and arithmetic expansion. In all cases, the final value of parameter shall be substituted.Only variables, not positional parameters or special parameters, can be assigned in this way. If parameter is unset or null, the expansion of word (or a message indicating it is unset if word is omitted) shall be written to standard error and the shell exits with a non-zero exit status.