From: M Mohr Date: 2002-10-05T07:08:51+09:00 Subject: Re: ruby if no input Anders Bengtsson writes: > 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. bash and tcsh, i would say. and gnuplot. > /Anders regards messju