M bin/llvm-find => bin/llvm-find +5 -3
@@ 2,6 2,8 @@
# vim: ft=bash:
exec /usr/bin/env PATH=/usr/local/bin:/usr/bin:/bin \
- "$(find /usr/bin /usr/local/bin -name "${0##*/}"'-??' -print |
- sort -Vr | sed 1q || printf "%s" "${0##*/}")" $(printf "%s" "$*" |
- tr -d '\\\n`;$()')
+ "$( ( commands=$(find /usr/bin /usr/local/bin -name "${0##*/}"'-??' \
+ -print)
+ [ -n "$commands" ] || commands=$(printf "%s" "${0##*/}")
+ printf "%s\n" "$commands"
+ ) | sort -Vr | sed 1q )" $(printf "%s" "$*" | tr -d '\\\n`;$()')