~/.pam_environment and variable values with spaces
I'm trying to define a variable in ~/.pam_environment. A value of the variable should contain a space. I've found rather strange behaviour:
Add into ~/.pam_environment following lines:
Open a new login session on a vt and check environment:
$ env | grep MYVAR
As you can see, out of 5 variables MYVAR[0-4] only the first one was defined. I cannot find description of .pam_environment syntax neither in pam_env nor pam_enf.conf manpages. May be I missed something. For me looks like a bug.
I'm using pam_env.so installeb by libpam-modules version 1.1.2-2ubuntu8 from Kubuntu Natty.
Can you help with this problem?
Provide an answer of your own, or ask Andrey Bondarenko for more information if necessary.