I am using the tcsh terminal in Linux. In the other terminal I normally used I set the path to some license file as follows:
export PATH="$PATH:$MODEL_TECH"
Tcsh shell does not recognise this command so I tried the following:
setenv PATH "$PATH:$MODEL_TECH"
set PATH "$PATH:$MODEL_TECH"
setenv PATH=("$PATH:$MODEL_TECH")
But then I always get the following error:
Bad : modifier in $ ($).
What be also great if someone could help me here out quickly, tried quite a few combinations but nothing works.
:
character for modifiers; for example$var:t
gives you the root of the filename$var
(by deleting the.whatever
extension). If you write"$PATH:$MODEL_TECH"
the shell thinks the '$' is part of a modifier for $PATH (which it doesn't recognize). The curly braces separate the name from the following':'
. Theset path = ...
form sets the corresponding shell variable$path
, which is tied to the environment variable$PATH
.man tcsh
for more information. – Chantry