From: "joerg.herzinger (Jörg Herzinger)" Date: 2012-11-06T17:36:08+09:00 Subject: [ruby-core:48965] [ruby-trunk - Feature #7288][Open] Documentation missing: FileUtils.chmod "+X", "directory" Issue #7288 has been reported by joerg.herzinger (J��rg Herzinger). ---------------------------------------- Feature #7288: Documentation missing: FileUtils.chmod "+X", "directory" https://bugs.ruby-lang.org/issues/7288 Author: joerg.herzinger (J��rg Herzinger) Status: Open Priority: Normal Assignee: aamine (Minero Aoki) Category: Target version: Documentation for chmods "X" (uppercase) feature is missing. This sets the execute bit on directories but not on files. Tested on my Ubuntu machine it works although not documented. Reproducable like this: [irb] require 'fileutils' FileUtils.cd "/tmp";FileUtils.touch "testfile";FileUtils.mkdir "testdir" FileUtils.chmod "-x", "testfile"; FileUtils.chmod "-x", "testdir" File.executable? "testdir" => false File.executable? "testfile" => false FileUtils.chmod "+X", "testfile"; FileUtils.chmod "+X", "testdir" File.executable? "testdir" => true File.executable? "testfile" => false [/irb] From chmods man page: ... execute (or search for directories) (x), execute/search only if the file is a directory or already has execute permission for some user (X) ... -- http://bugs.ruby-lang.org/