im trying to set the environment path to run pintos command like this in my home floder under ubuntu
set path = ($path /home/pintos/src/utils)
and I type terminal command try to compile this
:~$ source .tcshrc
but it seems get error like this
bash: .tcshrc: line 1: syntax error near unexpected token `('
bash: .tcshrc: line 1: `set path = ($path /home/pintos/src/utils)'
I dont know where is the syntax error is …
You
sourceyour script, which is perfectly valid for[t]csh, into your running shell, which happens to bebash(and nottcsh).If you’re going to use
tcsh, just run it (by typingtcsh) and ensure that your~/.tcshrchas the desired effect. (Then, maybe, usechshto change your login shell).If you’re going to use
bash, set path usingPATH=$PATH:/home/pintos/src/utils, in~/.bashrcand/or in~/.bash_profile.