* ext/pty/expect_sample.rb: avoid symbolic link representation for

expect.  a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30714]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-04-16 13:56:19 +00:00
Родитель a8c748d277
Коммит 047f685d73
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Mon Apr 16 22:56:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/pty/expect_sample.rb: avoid symbolic link representation for
expect. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
[ruby-dev:30714]
Mon Apr 16 22:51:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* sample: replace TRUE, FALSE with true, false respectively.

Просмотреть файл

@ -37,9 +37,9 @@ PTY.spawn("ftp ftp.ruby-lang.org") do |r_f,w_f,pid|
w_f.print "dir\n"
end
r_f.expect("> ") do |output|
r_f.expect(/[^\-]> /) do |output|
for x in output[0].split("\n")
if x =~ /(ruby.*\.tar\.gz)/ then
if x =~ /(ruby.*?\.tar\.gz)/ then
fnames.push $1
end
end