Hi Vyoma,

I don't have that version of GNU bash to try out. Could you surround the 
regular expression in single- or double-quotes to see if that corrects the 
problem? 

Quoting regex seems to be inconsistent among bash versions. 

Thanks,
Andreas

On Aug 16, 2011, at 10:07 AM, Vyoma wrote:

> I too am getting this error while trying to startup Neo4j on Sun Solaris:
> 
>> ./neo4j start
> bin/utils: line 30: syntax error in conditional expression: unexpected token
> `('
> bin/utils: line 30: syntax error near `^(['
> bin/utils: line 30: `      if [[ ${line} =~ ^([^#\s][^=]+)=(.+)$ ]]; then'
> 
> Here is the bash version:
> 
>> bash -version
> GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10)
> Copyright (C) 2004 Free Software Foundation, Inc.
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Neo4j-startup-script-syntax-errors-tp3136965p3259264.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to