Linux – Bad : modifier in $ ‘”‘.

Today few words about C shell (csh) and SAP environment. An example modification of the LD_LIBRARY variable causes an error: Bad : modifier in $ ‘”‘

Before:

setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:"/usr/sap/SID/hdbclient"
# end SAP R/3 Environment
".sapenv_hostname.csh" 381L, 10918C written
hostname:sidadm 2> exit
logout
username@hostname:~> sudo su - sidadm
Bad : modifier in $ '"'.

After corrections:

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:"/usr/sap/SID/hdbclient"
# end SAP R/3 Environment
".sapenv_hostname.csh" 381L, 10920C written
hostname:sidadm 2> exit
logout
username@hostname:~> sudo su - sidadm
hostname:sidadm 50> env |grep -i hdb
LD_LIBRARY_PATH=/usr/sap/SID/SYS/exe/run:/usr/sap/SID/SYS/exe/uc/linuxx86_64:/usr/sap/SID/hdbclient:/usr/sap/SID/hdbclient

Copyright © 2023. SAPBasisWorld.com Privacy Policy