diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-01-03 13:00:58 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-01-03 13:00:58 +0100 |
commit | ebde27381b403af79ba25cc2d8f3e3823a8ba764 (patch) | |
tree | 02dbcd1cce5b0baaf0b53c524b15bf3c59ba55d0 /test/main | |
parent | 5dc79a2cb1afd3bfaafb58ceee93219a29825017 (diff) |
Preserve leading spaces, document shell problems with whitespaces & IFS
Diffstat (limited to 'test/main')
-rwxr-xr-x | test/main | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) |