X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_SEMBLACK,RDNS_DYNAMIC,SPF_FAIL X-Spam-Check-By: sourceware.org Date: Thu, 19 Apr 2012 21:21:51 +0200 From: Mike Dornberger To: cygwin AT cygwin DOT com Subject: /usr/bin/getopt doesn't honor the -n option Message-ID: <20120419192151.GG10108@wolfden.dnsalias.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 Hello, `man 1 getopt' describes the -n/--name option as follows: | The name that will be used by the getopt(3) routines when it | reports errors. Note that errors of getopt(1) are still reported | as coming from getopt. But the -n option isn't honored: $ /usr/bin/getopt -n myprog -o abc -- -x getopt: unknown option -- x -- $ LANG=C LC_ALL=C /usr/bin/getopt --version getopt from util-linux 2.21 I tested under Debian Squeeze (getopt from util-linux 2.17.2) to see that I did understand the description right: $ /usr/bin/getopt -n myprog -o abc -- -x myprog: invalid option -- 'x' -- Sincerely, Mike Dornberger PS: Please Cc: me on replies since I'm not subscribed to the list. -- 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