From: zhoujing@... (TOTO) Date: 2003-01-15T16:57:57+09:00 Subject: Dir.mkdir I am quite confused by the "Dir.mkdir( aString [, anInteger ] ) -> 0" class method. It doesn't seem to work as expected in the UNIX way. Say I have the following program, mkdir.rb: #! /usr/bin/env ruby Dir.mkdir(ARGV[0], 0777) if ARGV.size >= 1 When I type: mkdir.rb t instead of set the permission of the directory t to: drwxrwxrwx, it is set to: drwxr-xr-x Can anyone explain? Thanks.