From 3dcf934a75fbafe6ea32a0bf27353a6a06b34f2b Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sat, 17 Nov 2012 11:42:33 +1300 Subject: [PATCH] Use builtin type to protect against aliases --- lib/scm_breeze.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/scm_breeze.sh b/lib/scm_breeze.sh index 8cb2b1a..7d84148 100644 --- a/lib/scm_breeze.sh +++ b/lib/scm_breeze.sh @@ -14,9 +14,9 @@ _alias(){ alias "$@" 2> /dev/null; } find_binary(){ if [ $shell = "zsh" ]; then - type -p "$1" | sed "s/$1 is //" | head -1 + builtin type -p "$1" | sed "s/$1 is //" | head -1 else - type -P "$1" + builtin type -P "$1" fi }