1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-12 20:20:59 +02:00
zsh-autoenv/tests
Rob Speed 7e0d027b21 _autoenv_get_file_upwards: do not dereference symlinks (#73)
This prevents issues where autoenv scripts use $0. When a shell enters the directory holding the autoenv scripts, it works as expected with $0 being the path to the symlink. However, if the shell enters one of its child directories the path to the script is dereferenced, and $0 is instead the path to the symlink's target.

From `man 1 zshexpn`:

> A – Turn a file name into an absolute path as the 'a' modifier does, and then pass  the  result  through  the  realpath(3) library function to resolve symbolic links.

Note: Symlinks are dereferenced elsewhere for authorization, so that behavior is unchanged.
2017-11-02 02:40:45 +01:00
..
ZDOTDIR tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.clobber tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.invalid-module_path tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.loadviafunction tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.shwordsplit Add tests/ZDOTDIR.shwordsplit 2015-11-18 19:25:07 +01:00
_autoenv_stack.t tests: rename setup.sh to setup.zsh 2015-04-23 16:03:21 +02:00
_autoenv_utils.t _autoenv_get_file_upwards: do not dereference symlinks (#73) 2017-11-02 02:40:45 +01:00
autoenv-edit.t Minor cleanup 2017-08-18 15:27:32 +02:00
autoenv.t Change default values: .env => .autoenv.zsh etc 2015-05-22 17:20:06 +02:00
cwd.t Change default values: .env => .autoenv.zsh etc 2015-05-22 17:20:06 +02:00
leave.t Cleanup API/vars for enter/leave events 2015-10-09 22:04:55 +02:00
recurse-upwards.t Change default values: .env => .autoenv.zsh etc 2015-05-22 17:20:06 +02:00
setup.zsh tests: test_autoenv_add_to_env: create auth file parent dir (#59) 2017-04-23 14:24:17 +02:00
source-parent-until.t Allow to limit autoenv_source_parent's upward recursion 2015-10-09 22:16:07 +02:00
source-parent-vars.t Cleanup API/vars for enter/leave events 2015-10-09 22:04:55 +02:00
upgrade_hash.t tests: fixes for noclobber (#62) 2017-04-23 22:11:55 +02:00
varstash_export.t Cleanup tests/varstash_export.t 2015-04-23 17:57:56 +02:00
varstash-alias.t Add a test for autostashing aliases (#44) 2016-11-29 21:46:50 +07:00
varstash-unstash-on-leave.t Set varstash_dir for "leave" event (#72) 2017-10-18 00:31:43 +02:00
varstash.t Fix use of local in while loop. (#66) 2017-05-16 22:58:25 +02:00