[GRADLE-63] Modify header of *nix gradle script Created: 24/Apr/08  Updated: 04/Jan/13  Resolved: 24/Apr/08

Status: Resolved
Project: Gradle
Affects Version/s: 0.1.1
Fix Version/s: 0.1.2

Type: Bug
Reporter: Hans Dockter Assignee: Hans Dockter
Resolution: Fixed Votes: 0


From the mailing list:


I am doing a small pilot with gradle, i am running this on solaris , not on
a linux system.
As soon as i run the script:
% ./gradle
./gradle: syntax error at line 173: `i=$' unexpected
zsh: exit 2 ./gradle

The problem is , sh is not bash, could you change this?
greetings Leon

Comment by Russel Winder [ 24/Apr/08 ]

This is also potentially a problem on Ubuntu (and Debian?) where /bin/sh is Dash not Bash.

I guess the moral of the story is that if the shell is /bin/sh then only Posix shell features should be used. Currently the scripts are using Bash feature so the other option is to specify Bash as the shell.

Generated at Wed Jun 30 11:21:03 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.