bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eduardo A . Bustamante López
Subject: Re: [PATCH] Fix hang if $OLDPWD points to inaccessible directory
Date: Fri, 29 Sep 2017 06:17:45 -0500
User-agent: NeoMutt/20170609 (1.8.3)

On Fri, Sep 29, 2017 at 11:12:59AM +0200, Mikulas Patocka wrote:
> This patch doesn't revert the above change. It only removes a test if 
> $OLDPWD is a directory. With this patch, if $OLDPWD points to a directory, 
> there will be no change, and if $OLDPWD points to non-directory, it will 
> not be cleared.

You're right. It doesn't revert it, but it does make it less useful.

> Hung mount shouldn't cause problems unless someone is accessing it.

My reasoning is that if stat()'ing a directory causes everything to
halt, then perhaps fix the source of that problem?

There's no reason why bash should make this a special case.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]