mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-11-14 21:00:58 +02:00
d9ff71ac1d
- use file mtime with "entered" stack - fix loading of varstash; look at $functions - Refactor stack handling, add tests - Refactor `_autoenv_get_file_upwards`, add tests - tests: setup: reset AUTOENV_ENV_FILENAME
16 lines
360 B
Perl
16 lines
360 B
Perl
Tests for internal util methods.
|
|
|
|
$ source $TESTDIR/setup.sh
|
|
|
|
Non-existing entries are allowed and handled without error.
|
|
|
|
$ mkdir -p sub/sub2
|
|
$ touch file sub/file sub/sub2/file
|
|
|
|
Should not get the file from the current dir.
|
|
$ _autoenv_get_file_upwards . file
|
|
|
|
$ cd sub/sub2
|
|
$ _autoenv_get_file_upwards . file
|
|
*/_autoenv_utils.t/sub/file (glob)
|