summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2015-05-23 21:48:26 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2015-05-23 21:48:26 +0100
commit089fc87a02b0c682ace3afc2f597f5e5b3b8f076 (patch)
treeed84ab31f040b6b2dd5d55c76395acba789e2148 /test
parentdd2a32ad5058ad7831621b99a1eadc264d4982c9 (diff)
New ${env {NAME}} expansion. Bug 1604
Diffstat (limited to 'test')
-rw-r--r--test/scripts/0000-Basic/00025
-rw-r--r--test/stdout/00025
2 files changed, 10 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002
index acb308324..9afb556a3 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -827,6 +827,11 @@ ${if forany{a:b:c}\
${if ={1}{1} {true}{${if ={1}{1} {true}{${if ={1}{1}{true}fail}}}}}
+# Environment access
+
+${env {USER}}
+${env {NO_SUCH_VARIABLE} {oops, success} {correct}}
+
****
# Test "escape" with print_topbitchars
exim -be -DPTBC=print_topbitchars
diff --git a/test/stdout/0002 b/test/stdout/0002
index d145e7ec3..9a3219d59 100644
--- a/test/stdout/0002
+++ b/test/stdout/0002
@@ -778,6 +778,11 @@ xyz
>
> true
>
+> # Environment access
+>
+> CALLER
+> correct
+>
>
> escape: B7·F2ò
>