On 6/20/20 7:32 PM, Ángel wrote:
> The hidden command "cd ." changed us into a completely different
> directory. Perhaps unexpected for the user (why did the bash version
> changed completely in the middle of a test run??).
>
> Reading the above POSIX link, I would expect cd -P . not to have such
On 2020-06-20 at 14:02 -0400, Chet Ramey wrote:
> It's a way to make sure PWD is correct after a `cd'. Without options, `cd'
> canonicalizes its pathname argument in the way POSIX describes in
>
> https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html#tag_20_14
>
> That converts it to
On 6/20/20 1:28 PM, Lawrence Velázquez wrote:
> Here's something fun though:
>
> $ PROMPT_COMMAND='cd .'
> $ readlink /tmp
> private/tmp
> $ mkdir /tmp/old
> $ cd /tmp/old
> $ echo "$PWD"
> /tmp/old
> $ mv /tmp/old /tmp/new
> $ echo "$PWD"
> /private/tmp/new
>
> Not wrong, but maybe unexpected t
On 6/19/20 8:51 PM, corr...@goncalo.pt wrote:
>
> When we rename the current working directory, $PWD doesn't get updated
> as it would as it would if we just did a simple "cd directory".
Of course not. There is no mechanism to inform the shell that the file
system has changed from underneath it.
> On Jun 20, 2020, at 11:26 AM, Ilkka Virta wrote:
>
>> On 20.6. 3.51, corr...@goncalo.pt wrote:
>>
>> When we rename the current working directory, $PWD doesn't get updated
>> as it would as it would if we just did a simple "cd directory". Fix:
>> Probably: Trigger the current working directory
On 20.6. 3.51, corr...@goncalo.pt wrote:
When we rename the current working directory, $PWD doesn't get updated
as it would as it would if we just did a simple "cd directory".
Fix:
Probably: Trigger the current working directory refresh event, like it
is already done with the cd command. Becaus
Hi,
> On Jun 19, 2020, at 8:51 PM, corr...@goncalo.pt wrote:
>
> Bash Version: 5.0
> Patch Level: 11
> Release Status: release
> Description:
> When we rename the current working directory, $PWD doesn't get updated
> as it would as it would if we just did a simple "cd directory". Because
> of t
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/l