From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3cc2e56299ac8b3f X-Google-Attributes: gidfee84,public From: Charles M Richmond Subject: Re: /usr/bin/getopts under DU4.0a Date: 1997/04/15 Message-ID: <335425EC.3F54@iisc.com>#1/1 X-Deja-AN: 235075348 References: <3352AED8.167E@phy.ucsf.edu> <335359EA.41C6@dcs.rhbnc.ac.uk> Organization: Integrated International Systems Corp. Newsgroups: comp.unix.osf.osf1 Bob Vickers wrote: > > Gaylord Holder wrote: > > > > /usr/bin/getopts seems to work fine under /bin/ksh, but not under > > /bin/sh in 4.0a. > > > > Does anyone know if this is a feature? > > > > Hi, > > Can you be more explicit? getopts is a ksh builtin, so under ksh you > won't execute /usr/bin/getopts unless you explicitly ask for it. > In 3.2 (and 4.0 ?) /usr/bin/getopts is just a ksh script that invokes the builtin by: ******** c=`basename $0` # Invoke the ksh builtin $c "$@" ******** Under the circumstances, I wouldn't expect any effect under the Bourne shell. Charlie -- *********************************************************************** * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 * ***********************************************************************