escaped which to avoid hitting aliases
authorChris Koeritz <cak0l@virginia.edu>
Mon, 1 Jun 2020 21:06:41 +0000 (17:06 -0400)
committerChris Koeritz <cak0l@virginia.edu>
Mon, 1 Jun 2020 21:06:41 +0000 (17:06 -0400)
scripts/core/functions.sh

index 6989449f702b475fdfe2fb5fa9bc4049334e98d6..a490bd40d2b6312891ecc2fd808dfb88c7dfe08e 100644 (file)
@@ -39,7 +39,7 @@ if [ -z "$skip_all" ]; then
   function whichable()
   {
     to_find="$1"; shift
-    local WHICHER="$(which which 2>/dev/null)"
+    local WHICHER="$(\which which 2>/dev/null)"
     if [ $? -ne 0 ]; then
       # there is no which command here.  we produce nothing due to this.
       echo