|
From: | Chris Elvidge |
Subject: | Re: is it a bug that PWD=whatever sets PS1's \w to that regardless |
Date: | Tue, 16 Mar 2021 12:07:40 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4 |
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 $PWDIf you want to register the current directory in $PS1 regardless, change \w to `pwd`
-- Chris Elvidge England
[Prev in Thread] | Current Thread | [Next in Thread] |