Bash attempts to execute the stat syscall on the $OLDPWD variable on every
startup. This results in hard to diagnose hangs if the $OLDPWD variable
points to a directory on network filesystem that is inaccessible (for
example sshfs or nfs).
How to reproduce the hang:
- mount an sshfs directory
On Thu, Sep 28, 2017 at 11:44:02AM +0200, Mikulas Patocka wrote:
[...]
> +++ bash/variables.c
> @@ -899,7 +899,7 @@ set_pwd ()
> don't find OLDPWD in the environment, or it doesn't name a directory,
> make a dummy invisible variable for OLDPWD, and mark it as exported. */
>temp_var
On 9/28/17 11:14 AM, Eduardo A. Bustamante López wrote:
> This patch would revert the change introduced in:
>
> http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=e6f5e0c858b7c0839d346d7d55e56894648c5a33
>
> Which was prompted by the following bug report from John Wiersba:
> https:
Robert Elz wrote:
> I will send one more reply on this topic - I am replying to this message
> as I agree with the change of Subject - this is off topic for this list,
> which is why I will not respond any further to messages about this here.
You are most enlightened and I will do the same with th