From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72052 invoked by alias); 9 Oct 2018 17:19:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 72003 invoked by uid 89); 9 Oct 2018 17:19:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-HELO:sk:mail-pg, H*r:sk:mail-pg X-HELO: mail-pg1-f172.google.com Received: from mail-pg1-f172.google.com (HELO mail-pg1-f172.google.com) (209.85.215.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 Oct 2018 17:19:27 +0000 Received: by mail-pg1-f172.google.com with SMTP id 23-v6so1128492pgc.8 for ; Tue, 09 Oct 2018 10:19:27 -0700 (PDT) MIME-Version: 1.0 References: <02c12d6e-cc18-89af-db83-1813cc8f0c97@redhat.com> In-Reply-To: From: Dan Kegel Date: Tue, 09 Oct 2018 17:19:00 -0000 Message-ID: Subject: Re: Fun with cp -R error when both foo and foo.exe exist To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00080.txt.bz2 Right. My thinking was that the auto-suffix probing makes sense when running or checking for a program, but not when creating a program. (I could be wrong, and I imagine if I actually compiled and tested the hack I'd find out pretty quickly if it was at least obviously wrong.) O_BINARY doesn't need to be there, but I included it as an additional filter because cp uses it. Can leave it out. I misremembered suffices as a britishism, sorry. - Dan -- 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