1 Test unstash behavior on leaving.
3 $ source $TESTDIR/setup.zsh || return 1
5 Setup test environment.
8 $ echo 'echo ENTER; stash FOO=changed' >| sub/$AUTOENV_FILE_ENTER
9 $ echo 'echo LEAVE; unstash FOO' >| sub/$AUTOENV_FILE_LEAVE
10 $ test_autoenv_auth_env_files sub
13 Activating the env stashes it and applies a new value.
20 Leaving the directory unstashes it (varstash_dir is set to prev dir).