summaryrefslogtreecommitdiff
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
-rw-r--r--lib/shell/system-command.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb
index ae157eba5c..da7fecf1d5 100644
--- a/lib/shell/command-processor.rb
+++ b/lib/shell/command-processor.rb
@@ -335,7 +335,7 @@ class Shell
end
# %pwd, %cwd -> @pwd
- def notify(*opts, &block)
+ def notify(*opts)
Shell.notify(*opts) {|mes|
yield mes if iterator?
@@ -407,7 +407,7 @@ class Shell
def self.alias_map
@alias_map
end
- def self.alias_command(ali, command, *opts, &block)
+ def self.alias_command(ali, command, *opts)
ali = ali.id2name if ali.kind_of?(Symbol)
command = command.id2name if command.kind_of?(Symbol)
begin
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb
index 30f2229d39..b973539b4b 100644
--- a/lib/shell/process-controller.rb
+++ b/lib/shell/process-controller.rb
@@ -234,7 +234,7 @@ class Shell
end
# simple fork
- def sfork(command, &block)
+ def sfork(command)
pipe_me_in, pipe_peer_out = IO.pipe
pipe_peer_in, pipe_me_out = IO.pipe
diff --git a/lib/shell/system-command.rb b/lib/shell/system-command.rb
index 50d994bb20..1a8bb1a90f 100644
--- a/lib/shell/system-command.rb
+++ b/lib/shell/system-command.rb
@@ -145,7 +145,7 @@ class Shell
# then
# mes: "job(%id) close pipe-out."
# yorn: Boolean(@shell.debug? or @shell.verbose?)
- def notify(*opts, &block)
+ def notify(*opts)
@shell.notify(*opts) do |mes|
yield mes if iterator?