[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")?
Re: [PATCH] Fix hang if $OLDPWD points to inaccessible directory, Mikulas Patocka, 2017/09/29
Re: [PATCH] Fix hang if $OLDPWD points to inaccessible directory, Chet Ramey, 2017/09/29