X-Recipient: archive-cygwin@delorie.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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=IGRYKh7CFe5unwKH
	D3ypopfTYTyVOcyqCwmfpWGuWoGTjH+xTgoay9/W23z/HQ+52oblJtwyzFV01P+s
	wREjzY53tPBlqBjFLUVSorrI6cvX6PCFoiUYOinbko8d+hYIuaTviPp06UhBcqLq
	0cRzNdsKpVahOFukDJUJbbbxVPk=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=VYWN+xhk1ZB3PHSHUQViz4
	BKFzs=; b=o0xbiuFSFZNHu34lE6rQ8nXO7eqUXwG/YgVtfuua1trLtgWvCH8WFs
	Qh5lntpZkJhD/VplYwMmPB/vTAW842qvMWr8VWqXqLBdqw5DUiFaLf7qLhzn3Z0N
	MtVtSuU4+F66lW8tAotzJN49Y+db5a/t5XQchwM+FOYWdxTnKCX5Q=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:5871396, H*MI:sk:5871396, H*i:sk:5871396
X-HELO: limerock01.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: windres broken
To: cygwin@cygwin.com
References: <5871396e.89049d0a.180c9.2294@mx.google.com>
From: Ken Brown <kbrown@cornell.edu>
Message-ID: <b9357cba-c5ae-16ec-2df2-882d96ac53df@cornell.edu>
Date: Sat, 7 Jan 2017 17:14:24 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <5871396e.89049d0a.180c9.2294@mx.google.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-PMX-Cornell-Gauge: Gauge=XX
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 1/7/2017 1:54 PM, Steven Penny wrote:
> On Sat, 7 Jan 2017 08:47:35, Ken Brown wrote:
>> That syntax works for me.  Are you sure you're using Cygwin's windres?
>
> I figured it out. If POSIXLY_CORRECT is set in the environment, it causes the
> problem I was having. This should probably be documented somewhere.

 From http://man7.org/linux/man-pages/man3/opterr.3.html:

By default, getopt() permutes the contents of argv as it scans, so that 
eventually all the nonoptions are at the end.  Two other modes are also 
implemented.  If the first character of optstring is '+' or the 
environment variable POSIXLY_CORRECT is set, then option processing 
stops as soon as a nonoption argument is encountered.

Ken

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

