On Thu, Feb 08, 2024 at 02:17:54PM +0700, Dmitry wrote:
> Greetings!
> 
> Why variable PS1 dose not change when set it before a command:
> Like this:
> A="a1" LANG="C.UTF-8" PS1="new" B="b2" bash --noprofile
> 
> $A, $B, $LANG -changed, $PS1 - not.

Most likely, you're setting PS1 in .bashrc or /etc/bash.bashrc and you
didn't use the --norc option to suppress it.

Reply via email to