From: stephen.hill@... (Steve Hill) Date: 2001-12-05T01:23:16+09:00 Subject: [ruby-talk:27458] Select isn't broken (was FileTest.exist? behaviour) Hmmm Ok, hands up on this one, I'm a fuckwit. I've been having problems with strange behaviours in ruby because I'm using an nfs mounted filesystem with different mountpoints on different machines - which can make things quite nasty - especially as the behaviour of ruby's Dir.chdir method appears architecture dependent (see this thread. So, thinking I had the same sort of problem, I spent the whole morning examining ruby source, and then found that the file in question which is giving the problems was a link to a file that didn't exist. Duh! Sorry folks, select isn't broken! Steve ts wrote in message news:<200112041046.fB4Ak5D13217@moulon.inra.fr>... > >>>>> "S" == Steve Hill writes: > > S> irb(main):001:0> Dir["m*"] > S> ["meta_param.txt", "ms_position.txt", "meta2.txt"] > S> irb(main):002:0> FileTest.exist?("meta2.txt") > S> false > > Well, you must give more information > > pigeon% irb > irb(main):001:0> Dir["y*"] > ["y"] > irb(main):002:0> FileTest.exist?("y") > false > irb(main):003:0> > pigeon% > > pigeon% ls -l y dont_exist > ls: dont_exist: No such file or directory > lrwxrwxrwx 1 ts ts 10 Dec 4 11:42 y -> dont_exist > pigeon% > > > Guy Decoux