도트로 env를 설정하는 방법은 무엇입니까? 시도했지만 작동하지 않았습니다.

export와 set env로 시도했지만 작동하지 않았습니다. 어떻게합니까?

예를 들어

~/directory$ export a.home=1
bash: export: `a.home=1': not a valid identifier



답변

쉘 식별자에서 점은 유효한 문자가 아닙니다.
답은 “당신이 원하는 것을 할 수 없습니다”입니다 :

   name   A word consisting only of  alphanumeric  characters  and  under-
          scores,  and beginning with an alphabetic character or an under-
          score.  Also referred to as an identifier.

답변

실제로 동료가 방금 요청한 후 해결 방법을 찾았습니다.

env var.with.dots=value command


답변