From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Refling To: cygwin@cygwin.com Subject: shouldn't pipes and redirection have the SAME mode? Date: Fri, 09 Feb 2001 18:56:00 -0000 Message-id: <3A84ADB6.384EBE85@imageworks.com> X-SW-Source: 2001-02/msg00506.html the following test program: #include main(){printf("%d\n", getmode(0));} produces the following output: cat it | ./a 0 while ./a < it 131072 I've seen the long discussion of setmode, and I just think that the default mode of pipes and redirection should be the SAME. It makes little sense for the above program to produce different output depending on where the same input comes from! -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple