4.2BSD _filbuf() question

phil%rice at sri-unix.UUCP phil%rice at sri-unix.UUCP
Fri Jan 20 03:39:38 AEST 1984


From:  William LeFebvre <phil at rice>

    this implies to me that
	    cat - a - b - c > d
    should read the standard input three times allowing me to enter titles.
    
    i'd say it's cat's fault for treating `-' as a special case rather
    than opening and closing the tty like it would any other file.

Yeah?  And what if standard input is a pipe?  Open and close the pipe
three times?

                                William LeFebvre
                                ARPANet and CSNet: phil at rice
                                USENet:  ...!lbl-csam!rice!phil



More information about the Comp.unix.wizards mailing list