summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/main12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/main b/test/main
index f3ec5a2..6d7cfeb 100755
--- a/test/main
+++ b/test/main
@@ -109,12 +109,22 @@ if ((test_extended)) {
export flurbl=$'yo my fresh\nhomies'
$envstore save flurbl
unset flurbl
- # XXX eval does not like newlines. Not even in dash.
+ # eval does not like newlines. Not even in dash.
source <($envstore eval)
[[ $flurbl == $'yo my fresh\nhomies' ]]
unset flurbl
$envstore clear
+ echo "# $envstore save (binary values)"
+ export noise=$'\xa0\xa5\x25\x01\x02\x77\xff\xf0'
+ $envstore save noise
+ pre_noise=$noise
+ unset noise
+ eval $($envstore eval)
+ [[ $noise == $pre_noise ]]
+ unset noise pre_noise
+ $envstore clear
+
echo "# invalid invocations"
! $envstore save &> /dev/null
unset nonexistent