This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: syntax error near unexpected token `{
- From: Matthew Woehlke <mw_triad at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 14 Feb 2007 15:50:21 -0600
- Subject: Re: syntax error near unexpected token `{
- References: <8971939.post@talk.nabble.com>
petermosca wrote:
I am attempting to create a bash script with a function definition. When I
execute the script with the function, I get:
'my_bash_script: line 3: syntax error near unexpected token `{".
'my_bash_script: line 3: ` {
If I type the function in the command line, it works fine.
Judging from your other mail, the answers are:
1. d2u
2. Don't use a broken editor
3. RTFRA and STFLA first.
--
Matthew
<insert witty signature here>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/