How to export dot separated environment variables

前端 未结 4 2098
粉色の甜心
粉色の甜心 2021-02-14 17:56

Execution of

user@EWD-MacBook-Pro:~$ export property.name=property.value

Gives me

-bash: export: `property.name=property.value\         


        
4条回答
  •  一整个雨季
    2021-02-14 18:21

    Bash only permits '_' and alpha numeric characters in variable names. The '.' isn't permitted.

    http://tldp.org/LDP/abs/html/gotchas.html

提交回复
热议问题