X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tests%2Fvarstash.t;h=3e4b3dc8145c02d3117e4886104a5a5cc9eb3214;hb=4aeb48a02e7fd20e89c207310bbd3d2e74b76479;hp=187904fc07d0830e0cae44e8ee83b2abcb7f9da7;hpb=738e6e965da6a41733199a349d497f796eacd062;p=zsh-autoenv.git diff --git a/tests/varstash.t b/tests/varstash.t index 187904f..3e4b3dc 100644 --- a/tests/varstash.t +++ b/tests/varstash.t @@ -106,3 +106,23 @@ And once again where a value gets restored. orig_2 }}} + +autostash does not issue a warning, and no other output. {{{ + + $ autostash something=1 something_else=2 + $ echo $something $something_else + 1 2 + $ stash something=1.2 something_else=2.2 + $ echo $something $something_else + 1.2 2.2 + $ stash something something_else + You have already stashed something, please specify "-f" if you want to overwrite another stashed value. + You have already stashed something_else, please specify "-f" if you want to overwrite another stashed value. + +Should not be set anymore. + + $ autounstash + $ echo ${+something} ${+something_else} + 0 0 + +}}}