зеркало из https://github.com/github/ruby.git
* 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:
Родитель
a8c748d277
Коммит
047f685d73
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче