This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: syntax error near unexpected token `{


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]