Create environment variable with dot in current environment
2 answers
Bash does not allow environment variables with non-alphanumeric character names (except _). While the environment may contain a string such as A.B=D
, there is no need for the shell to be able to use it and bash cannot. Other shells can be more flexible.
Utilities using oddly named environment variables are discouraged, but some may exist. You will need to use env
to create such an environment variable. You can avoid the sub-process with help exec env bash
, but that won't help you significantly reduce your time or resources.
+6
source to share