UAd*_*ter 13 bash console environment-variables
我尝试通过导出并设置 env 来做到这一点,但没有奏效。怎么做?
例如
~/directory$ export a.home=1
bash: export: `a.home=1': not a valid identifier
Run Code Online (Sandbox Code Playgroud)
小智 23
实际上,一位同事刚刚问我,我找到了一个解决方法 - 使用
env var.with.dots=value command
Run Code Online (Sandbox Code Playgroud)
enz*_*tib 13
点不是 shell 标识符中的有效字符。
所以答案是“你不能做你所要求的”:
Run Code Online (Sandbox Code Playgroud)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.