c&d: se_programs for "which" i/o redirection of error message
authorRalph Amissah <ralph@amissah.com>
Tue, 7 Apr 2015 02:24:57 +0000 (22:24 -0400)
committerRalph Amissah <ralph@amissah.com>
Thu, 9 Apr 2015 03:05:39 +0000 (23:05 -0400)
lib/sisu/current/se_programs.rb
lib/sisu/develop/se_programs.rb

index ee85725f97e9278fcee2f52453edb25452dfe8c8..83c5797700637f138cf205fc776c4f33fb30efa2 100644 (file)
@@ -72,7 +72,7 @@ module SiSU_Sys_Call
       @sys=SiSU_Info_Sys::InfoSystem.instance
     end
     def program_found?(program)
-      found=`which #{program}` #`whereis #{program}`
+      found=`which #{program} 2>&1` #`whereis #{program}`
       (found =~/bin\/#{program}\b/) ? true : false
     end
     def locale                         #locales utf8 or other
index ba3a7b26722b909f728fc9f69a9bd744a65c8989..e39498822c62e1035a5bcc7544685abf153bc093 100644 (file)
@@ -72,7 +72,7 @@ module SiSU_Sys_Call
       @sys=SiSU_Info_Sys::InfoSystem.instance
     end
     def program_found?(program)
-      found=`which #{program}` #`whereis #{program}`
+      found=`which #{program} 2>&1` #`whereis #{program}`
       (found =~/bin\/#{program}\b/) ? true : false
     end
     def locale                         #locales utf8 or other