[Geoserver-devel] Shell issues with the startup/shutdown shell scripts?

As part of the QA process for the OSGEO LiveDVD some one has pointed
out that the use of export FOO=bar is a bashism that won't work with
the default Ubuntu and Debian default sh (dash). The suggested fix is
to use FOO=bar; export FOO. The other alternative is to explicitly
call /bin/bash at the top of the script instead of /bin/sh.

However I'm running on Ubuntu currently and I don't see any problems
(though I have JAVA_HOME already set). Has anyone else seen any
problems with exports in the shell scripts?

Ian

--
Ian Turton

On Sun, Jun 26, 2011 at 5:48 PM, Ian Turton <ijturton@anonymised.com> wrote:

As part of the QA process for the OSGEO LiveDVD some one has pointed
out that the use of export FOO=bar is a bashism that won’t work with
the default Ubuntu and Debian default sh (dash). The suggested fix is
to use FOO=bar; export FOO. The other alternative is to explicitly
call /bin/bash at the top of the script instead of /bin/sh.

However I’m running on Ubuntu currently and I don’t see any problems
(though I have JAVA_HOME already set). Has anyone else seen any
problems with exports in the shell scripts?

Definitely works in Ubuntu, I guess Debian might be stricter

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf


On Sun, Jun 26, 2011 at 6:04 PM, Andrea Aime <andrea.aime@anonymised.com.1268…> wrote:

On Sun, Jun 26, 2011 at 5:48 PM, Ian Turton <ijturton@anonymised.com> wrote:

As part of the QA process for the OSGEO LiveDVD some one has pointed
out that the use of export FOO=bar is a bashism that won’t work with
the default Ubuntu and Debian default sh (dash). The suggested fix is
to use FOO=bar; export FOO. The other alternative is to explicitly
call /bin/bash at the top of the script instead of /bin/sh.

However I’m running on Ubuntu currently and I don’t see any problems
(though I have JAVA_HOME already set). Has anyone else seen any
problems with exports in the shell scripts?

Definitely works in Ubuntu, I guess Debian might be stricter

Btw, see here:
https://help.ubuntu.com/community/EnvironmentVariables

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf