[#11952] NORETURN — "Nobuyoshi.Nakada" <nobu.nakada@...>

なかだです。

24 messages 2001/01/10
[#11956] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11957] Re: NORETURN — matz@... (Yukihiro Matsumoto) 2001/01/10

まつもと ゆきひろです

[#11958] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11959] CVS branches (Re: Re: NORETURN) — matz@... (Yukihiro Matsumoto) 2001/01/10

[#12087] string#index, gsub, []= のバグ? — Beyond <beyond@...>

18 messages 2001/01/27
[#12091] Re: string#index, gsub, []= のバグ? — matz@... (Yukihiro Matsumoto) 2001/01/27

まつもと ゆきひろです

[ruby-dev:11972] download tarball using cvsweb

From: Katsuyuki Komatsu <komatsu@...>
Date: 2001-01-10 15:00:31 UTC
List: ruby-dev #11972
小松です。

Ruby CVS Repository
  http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/
からruby_1_6 branchのtarballを、
  "Download this directory in tarball"
を使って取ってこようとしたところ、後ろにゴミがついていました。

なぜかと思ったら、GNU tarは、"tar -zcf -"でstdoutに出力すると、
圧縮した結果をブロック単位 (この場合は10240バイト) で
出力する仕様なんですね。

cvsweb.cgiのtarballのところを"tar -cf - ... | gzip"の
形にした方がよいかもしれません。

[info tarより引用]
`-b BLOCKS'
`--blocking-factor=BLOCKS'
     ...
     If the output goes directly to a
     local disk, and not through stdout, then the last write is not
     extended to a full record size.  Otherwise, reblocking occurs.

% wget -q -O ruby.tar.gz 'http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/ruby/ruby.tar.gz?only_with_tag=ruby_1_6&tarball=1'
% gzip -t ruby.tar.gz

gzip: ruby.tar.gz: decompression OK, trailing garbage ignored
% od -A x -t x1 ruby.tar.gz | tail -4
0bf960 12 2f 00 40 33 00 00 00 00 00 00 00 00 00 00 00
0bf970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0c0800
% 

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread

Prev Next