--- /usr/lib/portage/bin/ebuild.sh 2003-07-29 09:54:49.000000000 +0200 +++ ebuild.sh 2003-07-31 22:57:31.000000000 +0200 @@ -85,7 +85,9 @@ local x for x in ${USE}; do if [ "${x}" == "${1}" ]; then - tty --quiet < /dev/stdout || echo "${x}" + test -r /dev/fd/1 \ + && (tty --quiet < /dev/stdout || echo "${x}") \ + || echo "${x}" return 0 fi done @@ -101,7 +103,9 @@ for x in "$@"; do if [ "${x}" == "${me}" ]; then - tty --quiet < /dev/stdout || echo "${x}" + test -r /dev/fd/1 \ + && (tty --quiet < /dev/stdout || echo "${x}") \ + || echo "${x}" return 0 fi done