aboutsummaryrefslogtreecommitdiffstats
path: root/lib/shell
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-27 15:35:04 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-27 15:35:04 +0000
commitcc13bb43bcb1e6b6798bb3190eeb65494dd2d320 (patch)
treeff56adadf7f83d0c7c77545ae118fceaa111a13b /lib/shell
parentcf376264011dbeb9c2de1aa17e505abcd5803056 (diff)
downloadruby-cc13bb43bcb1e6b6798bb3190eeb65494dd2d320.tar.gz
* lib/matrix.rb: resolve 'ruby -w' warnings.
* lib/irb/locale.rb: resolve 'ruby -w' warnings. * lib/irb/multi-irb.rb: resolve 'ruby -w' warnings. * lib/irb/ruby-lex.rb: fix problem for "\\M-\\..." and "\\C-\\..." and resolve 'ruby -w' warnings. * lib/irb/ruby-token.rb: fix typo * lib/shell/command-processor.rb: resolve 'ruby -w' warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell')
-rw-r--r--lib/shell/command-processor.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb
index fa253b3705..459cf858d0 100644
--- a/lib/shell/command-processor.rb
+++ b/lib/shell/command-processor.rb
@@ -241,7 +241,7 @@ class Shell
def transact(&block)
begin
- @shell.instance_eval &block
+ @shell.instance_eval(&block)
ensure
check_point
end
@@ -251,7 +251,7 @@ class Shell
# internal commands
#
def out(dev = STDOUT, &block)
- dev.print transact &block
+ dev.print transact(&block)
end
def echo(*strings)
@@ -352,7 +352,7 @@ class Shell
#
def self.def_system_command(command, path = command)
begin
- eval ((d = %Q[def #{command}(*opts)
+ eval((d = %Q[def #{command}(*opts)
SystemCommand.new(@shell, '#{path}', *opts)
end]), nil, __FILE__, __LINE__ - 1)
rescue SyntaxError
@@ -387,14 +387,14 @@ class Shell
if iterator?
@alias_map[ali.intern] = proc
- eval ((d = %Q[def #{ali}(*opts)
+ eval((d = %Q[def #{ali}(*opts)
@shell.__send__(:#{command},
*(CommandProcessor.alias_map[:#{ali}].call *opts))
end]), nil, __FILE__, __LINE__ - 1)
else
args = opts.collect{|opt| '"' + opt + '"'}.join ","
- eval ((d = %Q[def #{ali}(*opts)
+ eval((d = %Q[def #{ali}(*opts)
@shell.__send__(:#{command}, #{args}, *opts)
end]), nil, __FILE__, __LINE__ - 1)
end