GNOME Bugzilla – Bug 545464
conduit can't be started up without bash
Last modified: 2008-08-22 01:01:00 UTC
Steps to reproduce: I typed conduit into the terminal and tried to start up conduit, but failed. Below is the output: bash-3.2$ conduit /usr/bin/conduit: syntax error at line 15: `(' unexpected The version I'm using is 0.3.12. My OS is Solaris. Stack trace: Other information:
Can you have a look at the /usr/bin/conduit script and see if anything there is not bash compliant? Im not an expert on shell script syntax quirks.... Aside: This whole yucky wrapper business will go away very soon, we are moving to use webkit for our login browser. This means no more gtkmozembed. This means no more yucky wrapper script!
Bashisms? maybe related to bug #546478
The POSIX form of command substitution ($(cmd) instead of `cmd`) is not supported in Bourne shell. So this should fix it for all Bourne shell users: --- conduit.old 2008-08-10 14:41:26.000000000 +0200 +++ conduit 2008-08-10 14:41:19.000000000 +0200 @@ -12,7 +12,7 @@ do if [ -x $d/run-mozilla.sh ]; then echo INFO: FOUND FIREFOX LIBS AT $d - $d/run-mozilla.sh $(dirname $0)/conduit.real $* + $d/run-mozilla.sh `dirname $0`/conduit.real $* exit fi done @@ -20,5 +20,5 @@ echo "WARNING: COULD NOT FIND FIREFOX LIBRARIES" echo "WARNING: CONDUIT MAY CRASH UNEXPECTEDLY" echo "WARNING: PLEASE TALK TO THE PERSON WHO PACKAGED CONDUIT" -$(dirname $0)/conduit.real $* +`dirname $0`/conduit.real $*
Fixed in SVN. $(foo) is a bashism. Als see bug #546478