Bad : modifier in $ (.)

后端 未结 3 2027
我在风中等你
我在风中等你 2021-02-07 04:26

I want to set environment variable in linux and did the same by giving command

 export PATH=$PATH:.

But getting error Bad : modifier in $ (.).<

3条回答
  •  忘掉有多难
    2021-02-07 05:09

    You might want to try this:

    export PATH="${PATH}:."
    

    I don't like having the current directory in the path, but at the end it's fairly safe.

提交回复
热议问题