This commit is contained in:
Alexander Gehrke 2023-02-13 18:08:13 +01:00
parent cfcdf95814
commit 5b0216753e
5 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,6 @@
# find next entry in PATH for wrapper scripts
# Usage: next-in-path <program name> <current $0>
typeset -U path
next-in-path() {
entries=( $(which -a $1) )
index=${entries[(ie)$2]}