How to export dot separated environment variables

前端 未结 4 2095
粉色の甜心
粉色の甜心 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:17

    If you export those properties to run an application, some programs can support setting system property as an option, and allow . in the property name.

    In Java world, most of tools support setting system property by -D option, e.g. you can set system property with dot like this -Dproperty.name=property.value.

提交回复
热议问题