summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/main b/test/main
index 9386794..7c73fc2 100755
--- a/test/main
+++ b/test/main
@@ -100,6 +100,16 @@ unset hello
$envstore clear
if ((test_extended)) {
+ echo "# $envstore save (newline in value)"
+ export flurbl=$'yo my fresh\nhomies'
+ $envstore save flurbl
+ unset flurbl
+ # XXX eval does not like newlines. Not even in dash.
+ source <($envstore eval)
+ [[ $flurbl == $'yo my fresh\nhomies' ]]
+ unset flurbl
+ $envstore clear
+
echo "# invalid invocations"
! $envstore save
unset nonexistent