This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using of getopts in bash


On Tue, Jan 23, 2001 at 03:57:18PM +0100, klaus.berndl@sdm.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]