cat -u

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Nov 30 00:22:09 AEST 1988


In article <783 at stolaf.UUCP> mike at wheaties.ai.mit.edu writes:
>With raw I/O it works as expected, with fread it doesn't.

Yup, that's the whole point.  (not really "raw I/O")

>If your loop is
>	while ((c = getchar()) != EOF)
>		putchar(c);
>then it works as expected, at least on the machines I have used.

No, that implementation is broken too.

>The cat I use (one I wrote myself) doesn't take any switches.
>It's also faster.

Same for the one I recently posted.



More information about the Comp.unix.wizards mailing list