For example, I would like to use the following environment variable name and value in a Linux environment
myDN=OU=MY_OU,DC=MYDC,DC=local
Is the above allowed in a Linux environment?
For example, I would like to use the following environment variable name and value in a Linux environment
myDN=OU=MY_OU,DC=MYDC,DC=local
Is the above allowed in a Linux environment?
Environment variables can contain any character except \0
, since the null byte is the C string terminator character. When parsing the environment, the first =
in each environment variable separates the name from the value, but additional =
characters have no impact.
barmar@dev:~$ export myDN=OU=MY_OU,DC=MYDC,DC=local
barmar@dev:~$ echo $myDN
OU=MY_OU,DC=MYDC,DC=local