From: Tag Ashby Date: 2010-03-29T07:51:22+09:00 Subject: Bad file descriptor, but not on 2/3 computers.... I am running a Ruby program that takes files from the command line and then edits them based on user input. This part works perfectly fine. The issue I am having is that when I pass an *input* file I am getting an error: "in 'gets': Bad file descriptor (Errno::EBADF)" I have tested this program on three machines, a windows laptop, a mac laptop, and a windows desktop. The program runs perfectly on the two laptops, but not on my desktop. The command line for the file looks like: Decrypt.rb test1.in test2.in