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: Bob Vickers Subject: Re: /usr/bin/getopts under DU4.0a Date: 1997/04/15 Message-ID: <335359EA.41C6@dcs.rhbnc.ac.uk>#1/1 X-Deja-AN: 234933547 References: <3352AED8.167E@phy.ucsf.edu> To: Gaylord Holder Organization: Royal Holloway College, University of London Newsgroups: comp.unix.osf.osf1 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. I don't know what /usr/bin/getopts does under 4.0, but the 3.2 version looks utterly pointless. getopts is meant to set shell variables, but it can't possibly do this if invoked as a separate process. Bob -- ====================================================================== Bob Vickers R.Vickers@rhbnc.ac.uk Dept of Computer Science, Royal Holloway College, University of London WWW: http://www.dcs.rhbnc.ac.uk/%7Ebobv/ Phone: +44 1784 443691