delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/23/10:07:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 23 Jan 2001 10:03:43 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: using of getopts in bash
Message-ID: <20010123100343.A8451@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <C9A98ED35114D31197D000805FEA668E027B188A AT mucexch DOT muc DOT sdm DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <C9A98ED35114D31197D000805FEA668E027B188A@mucexch.muc.sdm.de>; from klaus.berndl@sdm.de on Tue, Jan 23, 2001 at 03:57:18PM +0100

On Tue, Jan 23, 2001 at 03:57:18PM +0100, klaus DOT berndl AT sdm DOT de wrote:
>>>Has anybody an easy understanding example for me how to use the bash
>>>build in command "getopts" (or where i can find such an example)??
>>>This would help me a lot...
>>
>>getopts is built into bash.  It is not built into ash.
>>/bin/sh == ash.
>>/bin/bash != /bin/sh
>
>Thank you for this information (i know this already)...but how does
>this help me in using getopts in bash-scripts??? :-)
>Does this mean you recommend not to use getopts because it´s not built in
>in ash too?
>Anyway: I WANT to use getopts...

Good for you.  Sorry that I misinterpreted your email.

You are free to use it, of course.  I don't have any examples but the
"man bash" documentation seems pretty clear.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019