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

Wolfgang Rohdewald (WRohdewald@online-club.de)
Wed, 23 Dec 1998 00:05:20 +0100


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

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

I am sure it would be fun to implement something like
this as a starter to learn something about the kernel,
but I don't think it should be more than that.

Wolfgang
-----
Wolfgang Rohdewald, Verisoft AG
if the above return address does not work, please use wr@poboxes.com
-----

-
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/