summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-01-03 13:00:58 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-01-03 13:00:58 +0100
commitebde27381b403af79ba25cc2d8f3e3823a8ba764 (patch)
tree02dbcd1cce5b0baaf0b53c524b15bf3c59ba55d0 /test/main
parent5dc79a2cb1afd3bfaafb58ceee93219a29825017 (diff)
Preserve leading spaces, document shell problems with whitespaces & IFS
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/main b/test/main
index 4a3d209..eded353 100755
--- a/test/main
+++ b/test/main
@@ -73,6 +73,18 @@ eval $(envstore eval)
test "$hello" = 'your mom'
unset hello
+echo "# envstore save (leading space in value)"
+envstore save hello ' world'
+eval $(envstore eval)
+test "$hello" = ' world'
+unset hello
+
+echo "# envstore save (trailing space in value)"
+envstore save hello 'world '
+eval $(envstore eval)
+test "$hello" = 'world '
+unset hello
+
echo "# envstore save (overwrite)"
envstore save hello world
eval $(envstore eval)