]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/varstash.t
Some more refactoring, adding support for `autoenv_source_parent`
[zsh-autoenv.git] / tests / varstash.t
index 621e93fc9ed9c6dad54c3f42c68a37174065a77a..74580441c27efbe01bfa8b7ded0fa262d5c4141e 100644 (file)
@@ -6,8 +6,8 @@ Setup test environment.
 
   $ mkdir sub
   $ cd sub
-  $ echo "autostash FOO=baz" > $AUTOENV_FILE_ENTER
-  $ echo "autounstash" > $AUTOENV_FILE_LEAVE
+  $ echo 'echo ENTER; autostash FOO=baz' > $AUTOENV_FILE_ENTER
+  $ echo 'echo LEAVE; autounstash' > $AUTOENV_FILE_LEAVE
 
 Manually create auth file
 
@@ -20,11 +20,13 @@ Set environment variable.
 Activating the env stashes it and applies a new value.
 
   $ cd .
+  ENTER
   $ echo $FOO
   baz
 
 Leaving the directory unstashes it.
 
   $ cd ..
+  LEAVE
   $ echo $FOO
   bar