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: L A Walsh
Subject: Re: [PATCH] Fix hang if $OLDPWD points to inaccessible directory
Date: Sat, 30 Sep 2017 13:43:37 -0700
User-agent: Thunderbird



Mikulas Patocka wrote:
I don't set up OLDPWD in /etc/profile.
---
   No one does -- unless someone is trying to cause mischief.  It's not
a likely event, but it would be annoying if someone did it.
   But, FWIW, -- it seems like not using 'tainted' values from the
environment in a LOGIN SHELL, would be prudent.
   Is it that difficult to only clear previous OLDPWD and
such when $0 == -bash (or when bash is about to read "/etc/bash_profile")?








reply via email to

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