git://git.jankratochvil.net
/
nethome.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
+function 'norc' to execute command without nethome .bashrc involvement.
[nethome.git]
/
bin
/
passg
1
#! /bin/sh
2
arg0="$1"
3
shift
4
me="`basename "$arg0"`"
5
# FIXME: Why not: IFS=: for i in...
6
save_IFS="$IFS"
7
IFS=:
8
for i in $PATH;do
9
IFS="$save_IFS"
10
test -x "$i/$me" -a "$i/$me" != "$arg0" || continue
11
exec "$i/$me" "$@"
12
echo "NOTREACHED" && exit 1
13
done
14
IFS="$save_IFS"
15
exec "g$me" "$@"