From: nobu.nokada@... Date: 2003-05-14T11:27:29+09:00 Subject: Re: Bug in backslash-escapes in Dir.glob Hi, At Wed, 14 May 2003 10:59:18 +0900, Clifford Heath wrote: > p Dir.glob("#{testdir.gsub(/ /, '?')}/*\ *") The last backslash has no meanings at all. Just a literal space. > $ ruby globtest.rb 'glob test' > ["glob test/file 1", "glob test/file 2", "globtest.rb", "glob test"] In 1.6, spaces are separators of patterns, so you are globbing "glob?test/*" and "*" here. -- Nobu Nakada