delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <8971939.post@talk.nabble.com> |
Date: | Wed, 14 Feb 2007 11:40:23 -0800 (PST) |
From: | petermosca <me AT petermosca DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | syntax error near unexpected token `{ |
MIME-Version: | 1.0 |
X-Nabble-From: | me AT petermosca DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Please help if you can. 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. My function: #!/bin/bash function afunc { echo $0 $1 $2 } afunc one two -- View this message in context: http://www.nabble.com/syntax-error-near-unexpected-token-%60%7B-tf3229216.html#a8971939 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |