Fix listquote expansion item to handle empty-string input
[users/heiko/exim.git] / test / aux-fixed / showenv
1 #! /bin/sh
2
3 # This script outputs certain information about the environment, for use when
4 # testing pipe transports.
5
6 cmd=/usr/xpg4/bin/id
7 [ -x $cmd ] || cmd=id
8 name=`$cmd -un`
9
10 echo Test pipe script
11 echo Running as: $name
12 echo ------------------
13 echo Args:
14 while [ "$1" != "" ]; do
15   echo "  $1"
16   shift
17 done
18 echo ----------current-----------
19 # strip trailing / from pwd result
20 d=`pwd`/dummy; dirname $d
21 echo ----------env-----------
22 echo A=$A
23 echo B=$B
24 echo C=$C
25 echo COLON=$COLON
26 echo DOMAIN=$DOMAIN
27 echo HOME=$HOME
28 echo LOCAL_PART=$LOCAL_PART
29 echo LOCAL_PART_PREFIX=$LOCAL_PART_PREFIX
30 echo LOCAL_PART_SUFFIX=$LOCAL_PART_SUFFIX
31 echo LOGNAME=$LOGNAME
32 echo ME=$ME
33 echo MESSAGE_ID=$MESSAGE_ID
34 echo PATH=$PATH
35 echo QUALIFY_DOMAIN=$QUALIFY_DOMAIN
36 echo RECIPIENT=$RECIPIENT
37 echo SENDER=$SENDER
38 echo SHELL=$SHELL
39 echo USER=$USER
40 echo ----------cat-----------
41 cat
42 echo ------------------
43