diff options
author | 2015-03-10 00:38:36 +0900 | |
---|---|---|
committer | 2015-03-10 01:11:54 +0900 | |
commit | f9b2434560399b00f7de479474f8f22fc0271e77 (patch) | |
tree | 533c52073958f233460ee4f9a392b313cf23a40e | |
parent | a982586c9ae5fc979d8f489a4b54c606feecf5b1 (diff) | |
download | paludis-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-x | paludis/repositories/e/ebuild/source_functions.bash | 2 |
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 58b932799..5bfb251c0 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 \ |