env variables with spaces

Net Llama! netllama
Tue Feb 27 16:22:01 PST 2007


I'm running into an annoying problem.  I'm taking the output from 'env' 
and dumping it to a file (/tmp/env.out), and then running 'source 
/tmp/env.out'.  The problem is that some of the variables in env output 
have values assigned to them with spaces, such as:
FOO=release debug

When source hits this, it gets confused and assumes that the ' debug' 
portion is something separate from the value of FOO, and barfs:
bash: release: command not found

Anyone have any suggestions how to get around this?  thanks

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                        netllama at linux-sxs.org
LlamaLand				http://netllama.linux-sxs.org



More information about the Linux-users mailing list