From b2a2d1dac1a2a64dd0fa47b7207bfdd6559a467d Mon Sep 17 00:00:00 2001 From: Giulio Eulisse Date: Thu, 20 Oct 2016 14:47:53 +0200 Subject: [PATCH] Unset BASH_ENV (#377) This is to avoid sourcing misbehaving bashrc files. --- aliBuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aliBuild b/aliBuild index 0af931d9..fbdd81f0 100755 --- a/aliBuild +++ b/aliBuild @@ -318,6 +318,10 @@ def doMain(): "LC_CTYPE", "LC_MESSAGES", "LC_MONETARY", "LC_NUMERIC", "LC_TIME", "LC_ALL"]: os.environ[x] = "C" + # We need to unset BASH_ENV because in certain environments (e.g. + # NERSC) this is used to source a (non -e safe) bashrc, effectively + # breaking aliBuild. + os.environ["BASH_ENV"] = "" parser = argparse.ArgumentParser(epilog="For complete documentation please refer to https://alisw.github.io/alibuild") parser.add_argument("action", choices=["init", "build", "clean", "version", "analytics"], help="what alibuild should do") parser.add_argument("pkgname", nargs="?", help="One (or more) of the packages in `alidist'")