Mills Thomas (app1tam) wrote:
If I do this:
type cat.rb
I get this output:
print $stdin.readlinesIf I do this:
type cat.rb | ruby -e “print $stdin.readlines”
I get this output (NOTE, it’s the same):
print $stdin.readlinesIf I type this command (.rb has been associated to ruby.exe on
Win2K):type cat.rb | cat.rb
I get this output:
cat.rb:1:in `readlines’: Bad file descriptor (Errno::EBADF)from cat.rb:1
What about type cat.rb | ruby cat.rb ?
···
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search