aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-04-06 22:24:57 -0400
committerRalph Amissah <ralph@amissah.com>2015-04-08 23:05:39 -0400
commit8f28f4c49ab6592550494bf56c6603a3044736cf (patch)
tree2f2e94ebe3e718d710b96239b7c4f26df1b51dd1
parentd: ao_doc_objects fix for ao_doc_str (diff)
c&d: se_programs for "which" i/o redirection of error message
-rw-r--r--lib/sisu/current/se_programs.rb2
-rw-r--r--lib/sisu/develop/se_programs.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/current/se_programs.rb b/lib/sisu/current/se_programs.rb
index ee85725f..83c57977 100644
--- a/lib/sisu/current/se_programs.rb
+++ b/lib/sisu/current/se_programs.rb
@@ -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
diff --git a/lib/sisu/develop/se_programs.rb b/lib/sisu/develop/se_programs.rb
index ba3a7b26..e3949882 100644
--- a/lib/sisu/develop/se_programs.rb
+++ b/lib/sisu/develop/se_programs.rb
@@ -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