This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Re: Bugs in Cygnus Tools bash


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/


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