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

Shell Scripting

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:

PATH=$PATH:/oracle/product/11.2.0/client_1/bin

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’

 

 

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply

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