had to hard code path to which
authorChris Koeritz <cak0l@virginia.edu>
Wed, 9 Feb 2022 20:16:25 +0000 (15:16 -0500)
committerChris Koeritz <cak0l@virginia.edu>
Wed, 9 Feb 2022 20:16:25 +0000 (15:16 -0500)
on some hosts, which is a function which hoses up our careful de-aliasing approach (putting a backslash in front).
now we're stuck with the semi-official location of expecting which in /usr/bin/which

scripts/core/functions.sh

index c4ff3f65090c852c7501ef7766e35d7757d1fc1d..24ce6e8c56fb7b987872a78559cc19cc8a411167 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="$(/usr/bin/which which 2>/dev/null)"
 #>&2 echo "got whicher as: $WHICHER"
     if [ $? -ne 0 ]; then
       # there is no which command here.  we produce nothing due to this.