I want to set environment variable in linux and did the same by giving command
export PATH=$PATH:.
But getting error Bad : modifier in $ (.).
Can some one help this. I tried with bash shell and ksh
I want to set environment variable in linux and did the same by giving command
export PATH=$PATH:.
But getting error Bad : modifier in $ (.).
Can some one help this. I tried with bash shell and ksh
Dont forget to escape the colon
You might want to try this:
I don't like having the current directory in the path, but at the end it's fairly safe.
This is not a Bash error, nor is it from Ksh: it's from C-shell or one of its clones such as Tcsh.
You want:
But you should not put
.
in your${PATH}
, it's a well-known security risk.