From f8dc1929415eb4f9b850269bca1e77e7eb5240d0 Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Sat, 7 May 2022 15:53:55 +0200
Subject: [PATCH] CONFIG: sourcing etc/cshrc twice unset the environment (fixes
 #2458)

---
 etc/config.csh/setup | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/etc/config.csh/setup b/etc/config.csh/setup
index 4b0a9a18ea7..47cd76a91a3 100644
--- a/etc/config.csh/setup
+++ b/etc/config.csh/setup
@@ -5,7 +5,7 @@
 #   \\  /    A nd           | www.openfoam.com
 #    \\/     M anipulation  |
 #------------------------------------------------------------------------------
-#     Copyright (C) 2018-2021 OpenCFD Ltd.
+#     Copyright (C) 2018-2022 OpenCFD Ltd.
 #------------------------------------------------------------------------------
 # License
 #     This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
@@ -210,8 +210,8 @@ endif
 
 # Remove duplicates from environment paths
 
-_foamClean PATH "$foamOldDirs"
-_foamClean MANPATH "$foamOldDirs"
+_foamClean PATH
+_foamClean MANPATH
 _foamClean -lib
 
 # Add trailing ':' for system manpages
-- 
GitLab