Bad : modifier in $ (/)

elif mutlu picture elif mutlu · Dec 5, 2016 · Viewed 18.1k times · Source
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/my/lib

error:

Bad : modifier in $ (/)

echo $SHELL

/bin/tcsh

I want to add my library to LD_LIBRARY_PATH variable. But Gives the above error.

Answer

Inian picture Inian · Dec 5, 2016

As Ignacio Vazquez-Abrams, pointed out you need to set environment variable in tcsh syntax as

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:"/home/my/lib"