Bad : modifier in $ ($) in csh shell linux

When you see something like this while setting any environment variables, this is due to the incompatibility of different versions of shells.

Like in Bash shell:


export PATH

but the above same commands will not work in csh shell, it will give error like “Bad : modifier in $ ($)” . So you have to set the PATH like below within single codes.


setenv PATH ‘$PATH:/oracle/product/11.2.0/client_1/bin’



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.