From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76289 invoked by alias); 7 Jan 2017 22:14:36 -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 76280 invoked by uid 89); 7 Jan 2017 22:14:36 -0000 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 Received: from limerock01.mail.cornell.edu (HELO limerock01.mail.cornell.edu) (128.84.13.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 07 Jan 2017 22:14:26 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v07MEMSN032383 for ; Sat, 7 Jan 2017 17:14:23 -0500 Received: from [172.20.1.43] (rrcs-97-78-142-195.se.biz.rr.com [97.78.142.195]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v07MELhd014712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 7 Jan 2017 17:14:22 -0500 Subject: Re: windres broken To: cygwin@cygwin.com References: <5871396e.89049d0a.180c9.2294@mx.google.com> From: Ken Brown Message-ID: Date: Sat, 07 Jan 2017 22:14:00 -0000 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 X-SW-Source: 2017-01/txt/msg00044.txt.bz2 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