aboutsummaryrefslogtreecommitdiffstats
path: root/lib/shell
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shell')
-rw-r--r--lib/shell/command-processor.rb4
-rw-r--r--lib/shell/process-controller.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb
index b7b58bb618..900b31a22d 100644
--- a/lib/shell/command-processor.rb
+++ b/lib/shell/command-processor.rb
@@ -26,7 +26,7 @@ class Shell
#
m = [:initialize, :expand_path]
if Object.methods.first.kind_of?(String)
- NoDelegateMethods = m.collect{|m| m.id2name}
+ NoDelegateMethods = m.collect{|x| x.id2name}
else
NoDelegateMethods = m
end
@@ -124,7 +124,7 @@ class Shell
f = File.open(path, mode, perm)
File.chmod(perm & ~@shell.umask, path)
if block_given?
- f.each &b
+ f.each(&b)
end
f
else
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb
index 4f28e018ad..f2bf1d44c8 100644
--- a/lib/shell/process-controller.rb
+++ b/lib/shell/process-controller.rb
@@ -62,7 +62,7 @@ class Shell
end
def block_output_synchronize(&b)
- @BlockOutputMonitor.synchronize &b
+ @BlockOutputMonitor.synchronize(&b)
end
def wait_to_finish_all_process_controllers