Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.11i In-Reply-To: ; 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