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: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 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=-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 AT cygwin DOT com References: <5871396e DOT 89049d0a DOT 180c9 DOT 2294 AT mx DOT google DOT com> From: Ken Brown Message-ID: 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