From 56e60da9db31c4b6ec8d6433be9710470daaf34a Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 5 Jan 2000 04:41:21 +0000 Subject: 20000105 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/find.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/find.rb') diff --git a/lib/find.rb b/lib/find.rb index 3f1b82d2b..469dca80a 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -17,7 +17,9 @@ module Find begin for f in d next if f =~ /^\.\.?$/ - if file == "/" then + if File::ALT_SEPARATOR and file =~ /^([\/\\]|[A-Za-z]:[\/\\]?)$/ then + f = file + f + elsif file == "/" then f = "/" + f else f = file + "/" + f -- cgit