omitted main benefit of hiding errors, argh
[feisty_meow.git] / scripts / core / functions.sh
index 6989449f702b475fdfe2fb5fa9bc4049334e98d6..674fdc95ba3035b227b04409229136291ac9e045 100644 (file)
@@ -39,12 +39,12 @@ 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
     fi
-    echo $($WHICHER $to_find)
+    echo $($WHICHER $to_find 2>/dev/null)
   }
 
   # makes a directory of the name specified and then tries to change the