Cygwin版やmingw版でDBMやGDBMがエラーになります。

C:\tmp>ruby -vrdbm -e "DBM.open('a')"
ruby 1.6.3 (2001-04-03) [i386-cygwin]
-e:1:in `open': Permission denied - "a" (Errno::EACCES)
        from -e:1

C:\tmp>ruby_ -vrdbm -e "DBM.open 'a'"
ruby 1.6.3 (2001-04-03) [i386-mingw32]
-e:1:in `open': No such file or directory - "a" (Errno::ENOENT)
        from -e:1

C:\tmp>ruby -vrgdbm -e "GDBM.open 'a'"
ruby 1.6.3 (2001-04-03) [i386-cygwin]
-e:1:in `open': Permission denied - "a" (Errno::EACCES)
        from -e:1

C:\tmp>ruby_ -vrgdbm -e "GDBM.open 'a'"
ruby 1.6.3 (2001-04-03) [i386-mingw32]
-e:1:in `open': Permission denied - "a" (Errno::EACCES)
        from -e:1


-- 
|ZnZ(ゼット エヌ ゼット)
|西山和広(Kazuhiro NISHIYAMA)