Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bad : modifier in $ (.)

Tags:

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

like image 227
Sijith Avatar asked Jan 10 '12 15:01

Sijith


1 Answers

Bad : modifier in $ (.). 

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:

setenv PATH ${PATH}:. 

But you should not put . in your ${PATH}, it's a well-known security risk.

like image 96
Johnsyweb Avatar answered Sep 17 '22 17:09

Johnsyweb