Subject: Re: bin/1945: env produces uneval'able output...
To: None <seebs@SOLON.COM>
From: None <Chris_G_Demetriou@NIAGARA.NECTAR.CS.CMU.EDU>
List: netbsd-bugs
Date: 01/15/1996 17:11:23
> >Description:
> 	If environment variables contain ('s or other sh metacharacters,
> 	the env output can cause syntax errors.
> 
> >How-To-Repeat:
> 	$ export ORGANIZATION="Usenet Fact Police (Undercover)"
> 	$ eval `env`
> 
> >Fix:
> 	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
sh-parsable output...


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.



chris