Subject: bin/1945: env produces uneval'able output...
To: None <gnats-bugs@gnats.netbsd.org>
From: None <seebs@solon.com>
List: netbsd-bugs
Date: 01/14/1996 17:37:51
>Number: 1945
>Category: bin
>Synopsis: env output may cause sh syntax errors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 14 19:05:01 1996
>Last-Modified:
>Originator: Peter Seebach
>Organization:
Usenet Fact Police (Undercover)
>Release: -current (Oct '95)
>Environment:
System: NetBSD taniemarie 1.1 NetBSD 1.1 (SEEBS) #3: Tue Nov 28 18:59:30 CST 1995 seebs@taniemarie:/usr/src/sys/arch/amiga/compile/SEEBS amiga
>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)
>Audit-Trail:
>Unformatted: