Testsuite: more portable implementation of "showenv"
[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 name=`whoami 2>/dev/null` || name=`who . . | awk '{print $1}'`
7
8 echo Test pipe script
9 echo Running as: $name
10 echo ------------------
11 echo Args:
12 while [ "$1" != "" ]; do
13   echo "  $1"
14   shift
15 done
16 echo ----------current-----------
17 pwd
18 echo ----------env-----------
19 echo A=$A
20 echo B=$B
21 echo C=$C
22 echo COLON=$COLON
23 echo DOMAIN=$DOMAIN
24 echo HOME=$HOME
25 echo LOCAL_PART=$LOCAL_PART
26 echo LOCAL_PART_PREFIX=$LOCAL_PART_PREFIX
27 echo LOCAL_PART_SUFFIX=$LOCAL_PART_SUFFIX
28 echo LOGNAME=$LOGNAME
29 echo ME=$ME
30 echo MESSAGE_ID=$MESSAGE_ID
31 echo PATH=$PATH
32 echo QUALIFY_DOMAIN=$QUALIFY_DOMAIN
33 echo RECIPIENT=$RECIPIENT
34 echo SENDER=$SENDER
35 echo SHELL=$SHELL
36 echo USER=$USER
37 echo ----------cat-----------
38 cat
39 echo ------------------
40