This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bugs in Cygnus Tools bash
- 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>
- Date: Mon, 23 Dec 2002 14:06:41 -0000
- Subject: Re: Bugs in Cygnus Tools bash
- Organization: Aonix Europe Ltd.
- References: <47D438A0510BD611B9470002A58EDAE7DEC84B@mchh2a6e.mchh.siemens.de>
Frank.Scheinert.extern@icn.siemens.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/