[ale] Bash/source question
Danny Cox
danscox at mindspring.com
Fri Mar 14 22:47:30 EST 2003
David,
On Fri, 2003-03-14 at 21:14, David Corbin wrote:
> I have a command that produces output which is a list of env variable
> assignments. I would like to get those variables assigned to the
> executing shell script. The only way I can figure out, is to send the
> output to a file, and then source it. Is there a better way?
'eval'?
eval $(env) almost works, but the values really need to be quoted. If
your command quotes 'em, eval will work.
--
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.
Danny
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list