From e5206792df210e915efe46a0a3074689fbe82b31 Mon Sep 17 00:00:00 2001 From: Julian Rother Date: Sun, 7 Jun 2020 14:24:57 +0200 Subject: t/2000-mpick.t: test environment variables in expressions --- t/2000-mpick.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/2000-mpick.t b/t/2000-mpick.t index 0b1296c..2f530e8 100755 --- a/t/2000-mpick.t +++ b/t/2000-mpick.t @@ -1,7 +1,7 @@ #!/bin/sh -e cd ${0%/*} . ./lib.sh -plan 28 +plan 29 rm -rf test.dir mkdir test.dir @@ -131,3 +131,5 @@ check_test 'multi redir' -eq 4 'mlist inbox | mpick ./expr | wc -l' check_test 'multi redir prefixes' -eq 2 'mlist inbox | mpick ./expr | cut -d: -f1 | sort -u | wc -l' ) + +check 'environment variable' 'mlist inbox | MSGID="" mpick -t "\"message-id\" == \$MSGID"' -- cgit 1.4.1