From 8525d4a2c5e5c5fb5a1a04e43cd5176c5680d21d Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Mon, 27 Apr 2020 16:57:51 +0200
Subject: [PATCH] CONFIG: no default verbosity for openfoam shell session

- an otherwise confusing amount of output that may not be expected
---
 etc/openfoam | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/etc/openfoam b/etc/openfoam
index 6db02bc6883..2bb13cbe326 100755
--- a/etc/openfoam
+++ b/etc/openfoam
@@ -63,7 +63,12 @@ options:
 Open an interactive bash session with an OpenFOAM environment,
 or run an OpenFOAM application (with arguments) after first sourcing
 the OpenFOAM etc/bashrc file from the project directory:
-($projectDir)
+(${projectDir:-???})
+
+For a persistent OpenFOAM environment, the following can be added to your
+~/.bashrc file:
+
+    source ${projectDir:-???}/etc/bashrc
 
 For more information: www.openfoam.com
 
@@ -91,8 +96,9 @@ getApiInfo()
 
 #-------------------------------------------------------------------------------
 
-# No inheritance of FOAM_SETTINGS
-unset FOAM_SETTINGS
+# - No inheritance of FOAM_SETTINGS
+# - No default verbosity (only as command-line option)
+unset FOAM_CONFIG_ETC FOAM_SETTINGS FOAM_VERBOSE
 unset _foamEtcDir _foamSettings _foamScriptCommand
 unset optTestTut
 
@@ -221,8 +227,6 @@ if [ -n "$_foamEtcDir" ] && [ -d "$_foamEtcDir" ]
 then
     # Additional etc directory
     export FOAM_CONFIG_ETC="$_foamEtcDir"
-else
-    unset FOAM_CONFIG_ETC
 fi
 
 if [ -n "$interactive" ]
-- 
GitLab