1、-shFlags.sh 1.0.1 Release Notes-Preface-Copyright 2008 Kate Ward. All Rights Reserved.Released under the LGPL (GNU Lesser General Public License)Author: Kate Ward (kate.ward)This document covers any known issues and workarounds for the stated release ofshFlags.General info-This is a minor bugfix rel
2、ease of shFlags. It mainly fixes poor output of theautomated help system, but it also includes a couple more examples that arereferenced by the documentation.Please see the CHANGES-1.0.txt file for a complete list of changes.Disclamer-The unit tests-shFlags is designed to work on as many environment
3、s as possible, but not allenvironments are created equal. As such, not all of the unit tests will succeedon every platform. The unit tests are therefore designed to fail, indicating tothe tester that the supported functionality is not present, but an additionaltest is present to verify that shFlags
4、properly caught the limitation andpresented the user with an appropriate error message.shFlags tries to support both the standard and enhanced versions of getopt.As each responds differently, and not everything is supported on the standardversion, some unit tests will be skipped (i.e. ASSERTS will n
5、ot be thrown) whenthe standard version of getopt is detected. The reason being that there isno point testing for functionality that is positively known not to exist. Atally of skipped tests will be kept for later reference.Standard vs Enhanced getopt-Here is a matrix of the supported features of the
6、 various getopt variants.+-+-+-+|Feature |std|enh|+=+=+=+|short option names | Y | Y |long option names | N | Y |spaces in string options | N | Y |+-+-+-+Known Issues-The getopt version provided by default with all versions of Mac OS X (up to andincluding 10.5) is the standard version. As such, only
7、 short flags aresupported.The getopt version provided by default with all versions of Solaris (up to andincluding Solaris 10) is the standard version. As such, only short flags aresupported.Workarounds-The zsh shell requires the shwordsplit option to be set, and the specialFLAGS_PARENT variable must be defined.