Re: /dev/one - why not /dev/repeat?

kwrohrer@ce.mediaone.net
Wed, 23 Dec 1998 10:31:50 -0600 (EST)


And lo, Wolfgang Rohdewald saith unto me:
>
> At 22.12.98 21:58 +0000, thunder7@xs4all.nl wrote:
> Are there advantages in having something like /dev/repeat?
> >
> >echo -n "echo this" > /dev/repeat
> >
> >cat /dev/repeat
> >echo thisecho thisecho thisecho this
>
> What would be wrong with a program named repeat ?
> echo -n "echo this " | repeat
>
> Or
>
> echo -n "echo this" > file
> while true
> do
> cat file
> done

You don't even need the file, you can probably re-echo, or backquote the
echo and stick the result in a variable.

And if you need a sink, as someone whined, that's what /dev/null is for.


> Why aren't expr, eval, sed, tr etc not implemented as
> devices ?

I'm holding out for /dev/emacs myself. :-)

Keith

-- 
 "Well, look at that.  The sun's   | Linux: http://www.linuxhq.com     |"Zooty,
  coming up." -- John Sheridan,    | KDE:   http://www.kde.org         | zoot
  "Sleeping in Light", Babylon 5   | Keith: kwrohrer@enteract.com      | zoot!"
www.midwinter.com/lurk/lurker.html | http://www.enteract.com/~kwrohrer | --Rebo

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/