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 /et
PS1="Works $PS1" bash --noprofile --norc
https://stackoverflow.com/questions/9357464/how-to-start-a-shell-without-any-user-configuration
On 8 Feb 2024 14:17 +0700, from lbvf50.mob...@gmail.com (Dmitry):
> 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.
>
> Works only when I explicitly set in current process
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.
Works only when I explicitly set in current process.
export PS1="(chroot) $PS1"
Is not this syntax:
VAR="..." VAR1="
4 matches
Mail list logo