aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Georgi Georgiev <chutz@gg3.net> 2015-03-10 00:38:36 +0900
committerAvatar Georgi Georgiev <chutz@gg3.net> 2015-03-10 01:11:54 +0900
commitf9b2434560399b00f7de479474f8f22fc0271e77 (patch)
tree533c52073958f233460ee4f9a392b313cf23a40e
parenta982586c9ae5fc979d8f489a4b54c606feecf5b1 (diff)
downloadpaludis-f9b2434560399b00f7de479474f8f22fc0271e77.tar.gz
paludis-f9b2434560399b00f7de479474f8f22fc0271e77.tar.xz
PWD is a special variable, we should leave its value alone
Bash sets the value of PWD to the current working directory. It is not a good idea to change that variable without actually changing the directory. This would happen if the working directory changes between saving and loading the environment (saving - when building a PBIN, and loading - when installing it for example), so better let bash handle this variable. Fixes: ticket:1325
-rwxr-xr-xpaludis/repositories/e/ebuild/source_functions.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/source_functions.bash b/paludis/repositories/e/ebuild/source_functions.bash
index 58b9327..5bfb251 100755
--- a/paludis/repositories/e/ebuild/source_functions.bash
+++ b/paludis/repositories/e/ebuild/source_functions.bash
@@ -37,7 +37,7 @@ ebuild_need_extglob()
ebuild_safe_source()
{
set -- "${@}" '[^a-zA-Z_]*' '*[^a-zA-Z0-9_]*' \
- EUID PPID UID FUNCNAME GROUPS SHELLOPTS BASHOPTS BASHPID IFS \
+ EUID PPID UID FUNCNAME GROUPS SHELLOPTS BASHOPTS BASHPID IFS PWD \
'BASH_@(ARGC|ARGV|LINENO|SOURCE|VERSINFO|REMATCH)' \
'BASH_COMPLETION?(_DIR)' 'bash+([0-9])?([a-z])' \
EBUILD_KILL_PID PALUDIS_LOADSAVEENV_DIR PALUDIS_DO_NOTHING_SANDBOXY SANDBOX_ACTIVE \