[PATCH] Fix hang if $OLDPWD points to inaccessible directory

2017-09-28 Thread Mikulas Patocka
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

Re: [PATCH] Fix hang if $OLDPWD points to inaccessible directory

2017-09-28 Thread Eduardo A . Bustamante López
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

Re: [PATCH] Fix hang if $OLDPWD points to inaccessible directory

2017-09-28 Thread Chet Ramey
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:

Re: (OffTopic,) Gnu-Environment restrictions (was Re: Question )

2017-09-28 Thread Bob Proulx
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