From: Joel VanderWerf Date: 2009-02-15T04:03:20+09:00 Subject: Re: simple ruby project layout question David Masover wrote: ... > So, in the Ruby world, bin is just "executables", binary or otherwise, > as distinct from lib, where you would find library code. Both are ruby > files, but bin/foo you might actually expect to set executable and run > as a command, whereas if you did the same to lib/foo.rb, it probably > wouldn't do anything. Not just the ruby world. count = 0 Dir['/usr/bin/*'].each do |fn| next if File.directory? fn File.open(fn) do |f| count += 1 if /^#!/ =~ f.read(100) end end p count # ==> 574 Of course some of those are shell scripts that just execute a true "binary executable". -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407