delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/14/16:55:36

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net>
Subject: Re: syntax error near unexpected token `{
Date: Wed, 14 Feb 2007 15:50:21 -0600
Lines: 18
Message-ID: <er006t$aaq$2@sea.gmane.org>
References: <8971939 DOT post AT talk DOT nabble DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0
In-Reply-To: <8971939.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


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