Package: coreutils
Version: 5.93-5
Severity: wishlist

Hi,

please consider giving env a command line option taking a list of
variables to leave untouched, so that exceptions from env -i behavior
can be specified. It is pretty hard to get variables across env -i
with 

env -i VAR1=$VAR1 VAR2=$VAR2 command

as soon the variables contain spaces.

An example:

HTTPD_ARGS="-f $AP_CONF"
ENV="env -i HTTPD_ARGS=$HTTPD_ARGS LANG=C PATH=/usr/local/bin:/usr/bin:/bin"
APACHE2="$ENV /usr/sbin/apache2"

Am still fighting with shell quoting to have this processed correctly.

ENV="env -i -e HTTPD_ARGS,LANG,PATH"

would be so much easier.

Greetings
Marc

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.1-zgsrv
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages coreutils depends on:
ii  libacl1                       2.2.34-1   Access control list shared library
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an
ii  libselinux1                   1.28-2     SELinux shared libraries

coreutils recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to