mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/pp.rb: don't print a mode File::Stat as decimal number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
94acb9c6bc
commit
46d98fe87b
2 changed files with 5 additions and 3 deletions
|
@ -4,6 +4,8 @@ Tue Jan 29 17:59:20 2002 Tanaka Akira <akr@m17n.org>
|
|||
|
||||
* configure.in: add check for `sys/mkdev.h'.
|
||||
|
||||
* lib/pp.rb: don't print a mode File::Stat as decimal number.
|
||||
|
||||
Mon Jan 28 19:16:58 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* array.c (rb_ary_fill): shouldn't yield unless block given.
|
||||
|
|
|
@ -361,10 +361,10 @@ class File
|
|||
pp.breakable
|
||||
pp.group {
|
||||
m = self.mode
|
||||
pp.text "mode="; pp.pp m
|
||||
pp.text "mode="; pp.text sprintf("0%o", m)
|
||||
pp.breakable
|
||||
pp.text sprintf("(0%o %s %c%c%c%c%c%c%c%c%c)",
|
||||
m, self.ftype,
|
||||
pp.text sprintf("(%s %c%c%c%c%c%c%c%c%c)",
|
||||
self.ftype,
|
||||
(m & 0400 == 0 ? ?- : ?r),
|
||||
(m & 0200 == 0 ? ?- : ?w),
|
||||
(m & 0100 == 0 ? (m & 04000 == 0 ? ?- : ?S) :
|
||||
|
|
Loading…
Add table
Reference in a new issue