bug-bash
[Top][All Lists]
Advanced

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

Re: is it a bug that PWD=whatever sets PS1's \w to that regardless


From: Alex fxmbsw7 Ratchev
Subject: Re: is it a bug that PWD=whatever sets PS1's \w to that regardless
Date: Tue, 16 Mar 2021 13:28:17 +0100

but is it a bug
its a bug to use heavy subshells for such
i understand the addment of this case tho

On Tue, Mar 16, 2021 at 1:23 PM Chris Elvidge <celvidge001@gmail.com> wrote:

> On 16/03/2021 10:23 am, Alex fxmbsw7 Ratchev wrote:
> > .. ?
> >
> > # root ~/ogt2/confs ( 0 @ 2 ) boost ( 42098 @ 1615890149.004363 ==
> > 2021-03-16+11:22:2920 ) #
> > PWD=/bla
> > # root /bla ( 0 @ 2 ) boost ( 42148 @ 1615890199.128728 ==
> > 2021-03-16+11:23:1920 ) #
> >
>
> Yes, it seems \w (and \W) take their values from $PWD
> If you want to register the current directory in $PS1 regardless, change
> \w to `pwd`
>
> --
> Chris Elvidge
> England
>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]