using of getopts in bash

Christopher Faylor
Tue Jan 23 07:04:00 GMT 2001

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


Want to unsubscribe from this list?
Check out:

More information about the Cygwin mailing list