This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
call function
- From: David Starks-Browning <starksb at ebi dot ac dot uk>
- To: Tiffany Chan <ikbea88 at yahoo dot co dot uk>
- Cc: cygwin at cygwin dot com
- Date: Tue, 29 Jan 2002 14:25:27 +0000
- Subject: call function
- References: <20020129140510.39028.qmail@web21210.mail.yahoo.com>
See the FAQ entry "Why doesn't my shell script work?".
Let us know if that does not answer your question.
Thanks,
David
(Cygwin FAQ maintainer)
On Tuesday 29 Jan 02, Tiffany Chan writes:
> In Unix, "function" can be added in script, e.g.
>
> #!/usr/bin/sh
> #
> function outmessage
> {
> echo $1;
> :
> :
> }
> #Main
> echo "Welcome"
> :
> :
> outmessage "hello amy"
> outmessage "hello peter"
> :
> :
> exit 0
>
> I try to call function outmessage in Cygwin, but it
> does work,
>
> function:not found
>
> What do I need to change for above script in order to
> use "function" ?
>
> thanks !
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> --
> 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/
--
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/