| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <03e901c2aa8c$85437850$cd8a9dc0@uk.aonix.com> |
| From: | "Cliff Hones" <cliff AT aonix DOT co DOT uk> |
| To: | "Scheinert Frank EXT" <Frank DOT Scheinert DOT extern AT icn DOT siemens DOT de>, |
| <cygwin AT cygwin DOT com> | |
| References: | <47D438A0510BD611B9470002A58EDAE7DEC84B AT mchh2a6e DOT mchh DOT siemens DOT de> |
| Subject: | Re: Bugs in Cygnus Tools bash |
| Date: | Mon, 23 Dec 2002 14:06:41 -0000 |
| Organization: | Aonix Europe Ltd. |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
Frank DOT Scheinert DOT extern AT icn DOT siemens DOT de wrote
>...
> Finally, the bash itself doesn't know the getopts function
>
> ...
> User defined functions like
>
> function usage
> {
> echo blabla
> }
>
> produce a "function: not found" output.
Are you trying this in a shell script? If so, you may be
inadvertently using the ash shell rather than bash.
By default, you get the ash shell when you run a script.
To get bash, you need to add "#!/bin/bash" as the first line
of the script.
A word of advice - don't report things as bugs unless you are sure
they are bugs and not cockpit error - it can make you look
foolish if you or your configuration are to blame.
-- Cliff
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |