Re: [bash-devel] Attempting to cd to the empty directory operand where ./ does not exist aborts

2024-01-29 Thread Kerin Millar
On Mon, 29 Jan 2024 10:30:43 -0500 Chet Ramey wrote: > On 1/29/24 5:51 AM, Kerin Millar wrote: > > > $ bash -c 'declare -p BASH_VERSION; cd ""' > > shell-init: error retrieving current directory: getcwd: cannot access > > parent directories: No such file or directory > > declare --

Re: [bash-devel] Attempting to cd to the empty directory operand where ./ does not exist aborts

2024-01-29 Thread Chet Ramey
On 1/29/24 5:51 AM, Kerin Millar wrote: $ bash -c 'declare -p BASH_VERSION; cd ""' shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory declare -- BASH_VERSION="5.3.0(4)-devel" chdir: error retrieving current directory: getcwd:

[bash-devel] Attempting to cd to the empty directory operand where ./ does not exist aborts

2024-01-29 Thread Kerin Millar
Hi, This is with commit 138f3cc3591163d18ee4b6390ecd6894d5d16977 running on Linux 6.7.2 and glibc-2.38. $ mkdir -p ~/dir && cd ~/dir && rmdir ~/dir $ cd "" bash: cd: : No such file or directory So far, so good. Now let's try to cd from a non-interactive instance. $ bash -c 'declare -p