summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-22 10:36:36 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-22 10:36:36 +0200
commitd1b176119a4c4152f762e31aeca2b855f8404ad9 (patch)
tree44585cfa27f45816195711cf25134ecb2d0a7e60 /test
parente952d88c1f0c1420e990114572bbd0d94e158950 (diff)
envstore: Added support for values with nwelines
Diffstat (limited to 'test')
-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