Christian Szegedy wrote:

> Ruby also reads from stdin if started without a file, this is of
> course not too helpful for a beginner, but allows for using it as a pipe.
> I think this is the optimal way a scripting language should behave.

It could actually do both. If stdin is a tty then it could give an
interactive session, otherwise fall back to the old behavior.
I think there are some examples of programs doing this, but I can't
think of one right now.

/Anders

-- 

A n d e r s  B e n g t s s o n  |  ndrsbngtssn / yahoo.se
Stockholm, Sweden               |

_____________________________________________________
Gratis e-mail resten av livet p? www.yahoo.se/mail
Busenkelt!