X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=JYI7/Ha +ixwUFHB3wppOH4OmEsM10xEr55gFVn1Mk3VQR0YkJHubrODPPIdG0Nk3MQBtj4o HLuKnTKNBJHcqWSH/HewwHTAa2a5sSUrWeGIImUVS40o5GU1mwyiriRUnxkhWABw gRIk0z3/uC6PVzbKdcPbBI6fLyqie9Qcq1mQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=/EBiiRvjlXaZv EIa9df3RK+BIpU=; b=wqnBlE5Sb1u6whp60Uht71rWIYVfPUp+Z5PSu6hko3d8R Z/6pCUHt5SMByubJUPpqbeFKl92Rmbg3epIJTjwXMKcmbpsz693zXAThzawBju2u UVn3h5vaZzwcFMN1zLAlgf4+53hOVwHgRBbXt/ZkqVVl4924wBxPRV1KCGULJc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f176.google.com X-Received: by 10.107.9.213 with SMTP id 82mr20546302ioj.56.1425063920213; Fri, 27 Feb 2015 11:05:20 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: A L Date: Fri, 27 Feb 2015 14:04:59 -0500 Message-ID: Subject: Re: freopen/fread/popen bug To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 > Thanks (and thanks to Corinna and Eric) for correcting my misconceptions. You're welcome. I only wanted to follow up that (I don't know what the heck happened to my head, but) when I was referring to file descriptors, I was consistently and mistakenly using "1" where "0" should have been used: stdin is at "0", and stdout is at "1" (and your code shares input stream with "cat", i.e. fd 0). Apologies. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple