From ebde27381b403af79ba25cc2d8f3e3823a8ba764 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 3 Jan 2010 13:00:58 +0100 Subject: Preserve leading spaces, document shell problems with whitespaces & IFS --- test/main | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/main') 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) -- cgit v1.2.3