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

Re: Difficulties with PS1.



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 to: