Package: fakechroot Version: 2.18-1 Severity: normal Tags: patch Dear Maintainer,
env in a fakechroot environment produces no output (instead of listing all environment variables). $ fakechroot fakeroot -s .fakeroot.state debootstrap --variant=fakechroot sid mychroot [ ... ] $ echo $? 0 $ fakechroot fakeroot -i .fakeroot.state -s .fakeroot.state chroot mychroot # export EXAMPLE1="example1" # env # echo $? 0 # printenv FAKECHROOT=true SHELL=/bin/bash TERM=linux LD_PRELOAD=libfakeroot-sysv.so:libfakechroot.so FAKECHROOT_EXCLUDE_PATH=/dev:/proc:/sys [ ... ] EXAMPLE1=example1 [...] One recover the normal behavior of env with the following patch (all environment variables are listed) Thank you for your ongoing work on fakechroot ! Regards, JH Chatenet diff -Naur a/usr/bin/env.fakechroot b/usr/bin/env.fakechroot --- a/usr/bin/env.fakechroot +++ b/usr/bin/env.fakechroot @@ -77,7 +77,7 @@ if [ $# -eq 0 ]; then export | while read line; do - if [ "$line" = "${line#declare -x }" ]; then + if [ "$line" = "${line#declare -x }" ] && [ "$line" = "${line#export }" ]; then continue fi fakechroot_env_key="${line#declare -x }" @@ -99,7 +99,7 @@ if [ $fakechroot_env_ignore_env = yes ]; then fakechroot_env_keys=`export | while read line; do - if [ "$line" = "${line#declare -x }" ]; then + if [ "$line" = "${line#declare -x }" ] && [ "$line" = "${line#export }" ]; then continue fi fakechroot_env_key="${line#declare -x }" -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Init: unable to detect Versions of packages fakechroot depends on: ii libfakechroot 2.18-1 fakechroot recommends no packages. fakechroot suggests no packages. -- no debconf information