M
Mills Thomas (app1tam)
If I do this:
home> type cat.rb
I get this output:
print $stdin.readlines
If I do this:
home> type cat.rb | ruby -e "print $stdin.readlines"
I get this output (NOTE, it's the same):
print $stdin.readlines
If I type this command (.rb has been associated to ruby.exe on Win2K):
home> type cat.rb | cat.rb
I get this output:
cat.rb:1:in `readlines': Bad file descriptor (Errno::EBADF)
from cat.rb:1
Any ideas why this doesn't work?
Drew
home> type cat.rb
I get this output:
print $stdin.readlines
If I do this:
home> type cat.rb | ruby -e "print $stdin.readlines"
I get this output (NOTE, it's the same):
print $stdin.readlines
If I type this command (.rb has been associated to ruby.exe on Win2K):
home> type cat.rb | cat.rb
I get this output:
cat.rb:1:in `readlines': Bad file descriptor (Errno::EBADF)
from cat.rb:1
Any ideas why this doesn't work?
Drew