Mercurial
>
hg
>
mhoward
>
dotfiles
/ annotate
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
latest
revisions
annotate
diff
comparison
raw
.lib/sh/stubexec.sh@0726a063b1d2 (annotated)
.lib/sh/stubexec.sh
Thu, 08 Jul 2021 13:26:41 -0500
author
Meredith Howard <mhoward@roomag.org>
date
Thu, 08 Jul 2021 13:26:41 -0500
changeset 924
0726a063b1d2
parent 915
55a1c83b3417
child 932
f87943eb16aa
permissions
-rw-r--r--
Disable vimwiki markdown hijack
915
55a1c83b3417
spin out stubexec
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
1
stubexec() {
55a1c83b3417
spin out stubexec
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
2
local real_bin="$(which -a $(basename $0) | grep -v $0 | head -n 1)"
55a1c83b3417
spin out stubexec
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
3
if [ -x "$real_bin" ]; then
55a1c83b3417
spin out stubexec
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
4
exec $real_bin $*
55a1c83b3417
spin out stubexec
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
5
fi
55a1c83b3417
spin out stubexec
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
6
}