]> Sergey Matveev's repositories - zsh-autoenv.git/commitdiff
Add a test for DOTENV_HANDLE_LEAVE=0
authorDaniel Hahler <git@thequod.de>
Sat, 15 Nov 2014 14:25:20 +0000 (15:25 +0100)
committerDaniel Hahler <git@thequod.de>
Sat, 15 Nov 2014 14:25:20 +0000 (15:25 +0100)
tests/leave.t

index 2954878d13675cb831b2600f58376065ceeea5b2..770b310405ee2bad26210d5a9efc0c5c23ceaa17 100644 (file)
@@ -78,3 +78,13 @@ Now check with subdirs, not looking at parent dirs.
   $ cd child
   $ cd ../..
   LEFT
+
+
+Test that .env is sourced only once with DOTENV_HANDLE_LEAVE=0.
+
+  $ unset _dotenv_stack_entered
+  $ DOTENV_HANDLE_LEAVE=0
+  $ cd sub
+  ENTERED
+  $ cd ..
+  $ cd sub