Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Message-ID: <3A84ADB6.384EBE85@imageworks.com> Date: Fri, 09 Feb 2001 18:55:50 -0800 From: John Refling X-Mailer: Mozilla 4.05 [en] (X11; U; IRIX 6.5 IP22) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: shouldn't pipes and redirection have the SAME mode? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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