1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* shell/command-processor.rb: undefined method `top_level_test' in

Shell#test. [ruby-list:45634]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2008-11-13 05:55:27 +00:00
parent 471742d6af
commit 4e6681683f
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 13 14:51:34 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
* shell/command-processor.rb: undefined method `top_level_test' in
Shell#test. [ruby-list:45634]
Wed Nov 12 03:49:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (load_lock): makes circular require deadlock.

View file

@ -155,6 +155,7 @@ class Shell
# sh[:exists?, "foo"]
# sh["exists?", "foo"]
#
alias top_level_test test
def test(command, file1, file2=nil)
file1 = expand_path(file1)
file2 = expand_path(file2) if file2
@ -162,7 +163,11 @@ class Shell
case command
when Integer
top_level_test(command, file1, file2)
if file2
top_level_test(command, file1, file2)
else
top_level_test(command, file1)
end
when String
if command.size == 1
if file2