Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Charles M Richmond <cmr@iisc.com>
Subject: Re: /usr/bin/getopts under DU4.0a
Date: 1997/04/15	[thread overview]
Message-ID: <335425EC.3F54@iisc.com> (raw)
In-Reply-To: 335359EA.41C6@dcs.rhbnc.ac.uk


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



  reply	other threads:[~1997-04-15  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-14  4:00 /usr/bin/getopts under DU4.0a Gaylord Holder
1997-04-15  4:00 ` Bob Vickers
1997-04-15  4:00   ` Charles M Richmond [this message]
1997-04-15  4:00 ` Jonathan Chen
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox