From steven.lamar.reynolds at gmail.com Sat Apr 26 08:19:17 2008 From: steven.lamar.reynolds at gmail.com (Steven Reynolds) Date: Sat, 26 Apr 2008 10:19:17 -0500 Subject: [closures-dev] Naming bourne shell in scripts causes failure on solaris Message-ID: <7fbed67d0804260819o26a411c2qa9b987593df8b1d7@mail.gmail.com> When I run the included bin/java on OpenSolaris, this script gives me the following error ./java: syntax error at line 3: `CLOSURES=$' unexpected This is caused by the bang pound majick calling for the bourne shell instead of bash. Bourne and bash are actually differnet on solaris. Attached are the changes to fix: explicitly name bash. -- Steven Reynolds steven.lamar.reynolds at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080426/b595fe8b/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: useBash.patch Type: text/x-patch Size: 1162 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080426/b595fe8b/attachment.bin From neal at gafter.com Sat Apr 26 14:24:26 2008 From: neal at gafter.com (Neal Gafter) Date: Sat, 26 Apr 2008 14:24:26 -0700 Subject: [closures-dev] Naming bourne shell in scripts causes failure on solaris In-Reply-To: <7fbed67d0804260819o26a411c2qa9b987593df8b1d7@mail.gmail.com> References: <7fbed67d0804260819o26a411c2qa9b987593df8b1d7@mail.gmail.com> Message-ID: <15e8b9d20804261424y25028c53w42bee6c1d8851fd2@mail.gmail.com> Thanks for reporting this. I'd prefer to modify the script to be legal for both shells. 2008/4/26 Steven Reynolds : > When I run the included bin/java on OpenSolaris, this script gives me the > following error > > ./java: syntax error at line 3: `CLOSURES=$' unexpected > > This is caused by the bang pound majick calling for the bourne shell > instead of bash. Bourne and bash are actually differnet on solaris. > Attached are the changes to fix: explicitly name bash. > > -- > > Steven Reynolds > steven.lamar.reynolds at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080426/1bc29434/attachment.html