aboutsummaryrefslogtreecommitdiffstats
path: root/lib/shell
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
commit8ef5da3be1577bb5ae7f55b60cf9fedb10ecb85e (patch)
treea700e3fe92165180b04451746f9c4fda4f038289 /lib/shell
parent3ec0bc3828794a6ef6293b53b403af8bc2362934 (diff)
downloadruby-8ef5da3be1577bb5ae7f55b60cf9fedb10ecb85e.tar.gz
consistent parentheses in assignment RHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell')
-rw-r--r--lib/shell/command-processor.rb2
-rw-r--r--lib/shell/process-controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb
index 876192e8b1..ce5102a9c4 100644
--- a/lib/shell/command-processor.rb
+++ b/lib/shell/command-processor.rb
@@ -393,7 +393,7 @@ class Shell
end]), nil, __FILE__, __LINE__ - 1)
else
- args = opts.collect{|opt| '"' + opt + '"'}.join ","
+ args = opts.collect{|opt| '"' + opt + '"'}.join(",")
eval((d = %Q[def #{ali}(*opts)
@shell.__send__(:#{command}, #{args}, *opts)
end]), nil, __FILE__, __LINE__ - 1)
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb
index 26fb1d9f08..f74abfd686 100644
--- a/lib/shell/process-controller.rb
+++ b/lib/shell/process-controller.rb
@@ -165,7 +165,7 @@ class Shell
return
elsif @active_jobs.include?(command)
begin
- r = command.kill sig
+ r = command.kill(sig)
ProcessController.inactivate(self)
rescue
print "Shell: Warn: $!\n" if @shell.verbose?