diff --git a/lib/uuidtools.rb b/lib/uuidtools.rb
index <HASH>..<HASH> 100644
--- a/lib/uuidtools.rb
+++ b/lib/uuidtools.rb
@@ -556,7 +556,7 @@ module UUIDTools
         if os_class == :windows
           script_in_path = true
         else
-          script_in_path = Kernel.system("which ifconfig 2&>1 > /dev/null")
+          script_in_path = Kernel.system("which ifconfig >/dev/null 2>&1")
         end
         if os_class == :solaris
           begin
Fix warnings when ifconfig can't be found. Refs #<I>