mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: csh ignores additional parameters (fixes #1582)
This commit is contained in:
@ -5,11 +5,10 @@
|
|||||||
# \\ / A nd | www.openfoam.com
|
# \\ / A nd | www.openfoam.com
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Copyright (C) 2018-2019 OpenCFD Ltd.
|
# Copyright (C) 2018-2020 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM, licensed under GNU General Public License
|
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
|
||||||
# <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/config.csh/setup
|
# etc/config.csh/setup
|
||||||
@ -89,7 +88,7 @@ endif
|
|||||||
|
|
||||||
# Capture and evaluate any command-line parameters
|
# Capture and evaluate any command-line parameters
|
||||||
# These can be used to set/unset values, specify additional files etc.
|
# These can be used to set/unset values, specify additional files etc.
|
||||||
setenv FOAM_SETTINGS "${*}"
|
setenv FOAM_SETTINGS "$argv[*]"
|
||||||
|
|
||||||
while ( $#argv > 0 )
|
while ( $#argv > 0 )
|
||||||
switch ($argv[1])
|
switch ($argv[1])
|
||||||
|
|||||||
@ -6,11 +6,10 @@
|
|||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Copyright (C) 2011-2016 OpenFOAM Foundation
|
# Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
# Copyright (C) 2016-2019 OpenCFD Ltd.
|
# Copyright (C) 2016-2020 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM, licensed under GNU General Public License
|
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
|
||||||
# <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/cshrc
|
# etc/cshrc
|
||||||
@ -176,7 +175,7 @@ endif
|
|||||||
# Finalize setup of OpenFOAM environment
|
# Finalize setup of OpenFOAM environment
|
||||||
if ( -d "$WM_PROJECT_DIR" ) then
|
if ( -d "$WM_PROJECT_DIR" ) then
|
||||||
if ($?FOAM_VERBOSE && $?prompt) echo "source $WM_PROJECT_DIR/etc/config.csh/setup"
|
if ($?FOAM_VERBOSE && $?prompt) echo "source $WM_PROJECT_DIR/etc/config.csh/setup"
|
||||||
source "$WM_PROJECT_DIR/etc/config.csh/setup" "${*}"
|
source "$WM_PROJECT_DIR/etc/config.csh/setup" $argv[*]
|
||||||
else
|
else
|
||||||
echo "Error: did not locate installation path for $WM_PROJECT-$WM_PROJECT_VERSION"
|
echo "Error: did not locate installation path for $WM_PROJECT-$WM_PROJECT_VERSION"
|
||||||
echo "No directory: $WM_PROJECT_DIR"
|
echo "No directory: $WM_PROJECT_DIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user