delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/09/13:09:48

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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=UG6/DcoK9qgf3m+H
04j1reKL8F+QzTqFSZ1v5ctrbX2wae+zTO15zgtjp9W1G72R2K6vC88cvvLa34Jp
Kq6qnVEEjli6rYG2HAXN0mdwxHK6ulDdwsqBe4ba5Vi4o+R3bBcyvAo/Es5BjQpx
watTsbamAhIucTbdlvW3FqwL+0Y=
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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=UgqN4PJIn6t239MC0GzUvI
/zSG8=; b=r5KHzkdK3VoFkoP81NmihKkPT0SU0y9HOC3zu2+nuKQslYiCZS/oHt
XGuR09TJPALOz6b+VyKYoizE0CkSk8IXXNFP4szakdUVnzJds7QF/kJLOtCfJlPI
TLOJrNtaSkjaieeFvcM5A7+V9AO/+5vhKmAuv+/93tBCLm81q7RgI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-1.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED autolearn=ham version=3.3.2
X-HELO: vms173003pub.verizon.net
Message-id: <522E00BC.7030201@cygwin.com>
Date: Mon, 09 Sep 2013 13:09:16 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gcc writing to /dev/null actually writes to /dev/null.exe
References: <CAJty3Zx2dRRsp31kwN6OGM-mJkGO6YsVVLHg9Y2JDsjH+0op7Q AT mail DOT gmail DOT com>
In-reply-to: <CAJty3Zx2dRRsp31kwN6OGM-mJkGO6YsVVLHg9Y2JDsjH+0op7Q@mail.gmail.com>

On 9/9/2013 12:24 PM, Adam Kellas wrote:
> Is this a bug which is fixable in Cygwin or just something to be lived with?
>
> % gcc -o /dev/null devnull.c
>
> % ls -ld /dev/null*
> crw-rw-rw-  1 dboyce Domain Users  1, 3 Sep  9 09:14 /dev/null
> -rwxrwxr-x+ 1 dboyce Domain Users 53827 Sep  9 09:14 /dev/null.exe
>
> % file /dev/null.exe
> /dev/null.exe: PE32 executable (console) Intel 80386, for MS Windows
>
> I'm aware of the .exe back story but this should be a special case, I think.

I can't imagine that this corner case is worth adding overhead to the
transparent exe handling code.  It also would open the door to arguments
to support other special cases.  That said, the final say goes to the
persons who generate a patch and those who review it.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019