X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Matthew Woehlke Subject: Re: syntax error near unexpected token `{ Date: Wed, 14 Feb 2007 15:50:21 -0600 Lines: 18 Message-ID: References: <8971939 DOT post AT talk DOT nabble DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 -- 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/