delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/29/09:25:41

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 29 Jan 2002 14:25:27 +0000
Message-ID: <264-Tue29Jan2002142527+0000-starksb@ebi.ac.uk>
X-Mailer: emacs 20.7.1 (via feedmail 9-beta-7 I);
VM 7.00 under Emacs 20.7.1
From: David Starks-Browning <starksb AT ebi DOT ac DOT uk>
MIME-Version: 1.0
To: =?iso-8859-1?q?Tiffany=20Chan?= <ikbea88 AT yahoo DOT co DOT uk>
Cc: cygwin AT cygwin DOT com
Subject: call function
In-Reply-To: <20020129140510.39028.qmail@web21210.mail.yahoo.com>
References: <20020129140510 DOT 39028 DOT qmail AT web21210 DOT mail DOT yahoo DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019