Subject: Re: bin/1945: env produces uneval'able output...
To: None <seebs@SOLON.COM>
From: None <Chris_G_Demetriou@NIAGARA.NECTAR.CS.CMU.EDU>
Date: 01/15/1996 17:11:23
> If environment variables contain ('s or other sh metacharacters,
> the env output can cause syntax errors.
> $ export ORGANIZATION="Usenet Fact Police (Undercover)"
> $ eval `env`
> env should probably escape metacharacters (and spaces)
Why do you say this? Nothing that i can find (documentation,
implementations; i don't have P.2) says that 'env' should produce
Of course, if you're going to do this, you should probably do the same
for 'printenv', but since they're really binaries (not shell builtins,
etc.), what shell should the format their output for? .... etc.