Hi. On Sun, 10 Aug 2014 17:03:20 +0200 Tony van der Hoff <t...@vanderhoff.org> wrote:
> DEBUG=1 > if [ $DEBUG -eq 0 ]; then > NULLOUT='>/dev/null' > fi > pushd $dir ${NULLOUT}; do_something; popd ${NULLOUT} > Try it like this: #DEBUG=1 OUT=/dev/null [ -z "$DEBUG" ] && OUT=/dev/stdout pushd $dir > $OUT; do_something; popd > $OUT Reco -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140810191558.3ba7534bafa666489bf97...@gmail.com