mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-11-25 08:21:03 +02:00
7e0d027b21
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. |
||
---|---|---|
.. | ||
ZDOTDIR | ||
ZDOTDIR.clobber | ||
ZDOTDIR.invalid-module_path | ||
ZDOTDIR.loadviafunction | ||
ZDOTDIR.shwordsplit | ||
_autoenv_stack.t | ||
_autoenv_utils.t | ||
autoenv-edit.t | ||
autoenv.t | ||
cwd.t | ||
leave.t | ||
recurse-upwards.t | ||
setup.zsh | ||
source-parent-until.t | ||
source-parent-vars.t | ||
upgrade_hash.t | ||
varstash_export.t | ||
varstash-alias.t | ||
varstash-unstash-on-leave.t | ||
varstash.t |