delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/05/16:18:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
X-Eon-Dm: dm0207
X-Eon-Sig: AQMb1uJNTb61U2LrhgIAAAAB,35d02ad935f9d451bfe9a8937591f4cc
Message-ID: <4D4DBEBB.1050504@serv.net>
Date: Sat, 05 Feb 2011 13:18:51 -0800
From: L Anderson <lowella AT serv DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: getopt -- just a nit
X-Proofpoint-Spam-Details: rule=notspam policy=default score=1 spamscore=1 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1102050103
X-IsSubscribed: yes
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

This is just a small nit that, I suppose, is for the maintainer of 'getopt'.

In "/usr/share/getopt", resides the file: 'getopt-parse.bash'.  Line 9 
of that file is:

'# ./parse.bash -a par1 'another arg' --c-long 'wow!*\?' -cmore -b " 
very long"'

which, in a moment of haste, led me to think I could just "cut-n-paste" 
it to the bash prompt to run the example--no joy.

Changing line 9 to:

'# ./getopt-parse.bash -a par1 'another arg' --c-long 'wow!*\?' -cmore 
-b " very long"'

would allow that.  i.e., keeping the command line keyword the same as 
the file name would be a nice touch.

Thanks,


Lowell Anderson




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