After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 545464 - conduit can't be started up without bash
conduit can't be started up without bash
Status: RESOLVED FIXED
Product: conduit
Classification: Other
Component: core
0.3.x
Other All
: Normal major
: ---
Assigned To: conduit-maint@gnome.bugs
conduit-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2008-07-30 09:31 UTC by Jerry Yu
Modified: 2008-08-22 01:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jerry Yu 2008-07-30 09:31:19 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:
Comment 1 John Stowers 2008-08-03 01:10:04 UTC
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!
Comment 2 John Stowers 2008-08-10 08:01:32 UTC
Bashisms? maybe related to bug #546478
Comment 3 Christian Schlotter 2008-08-10 12:44:27 UTC
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 $*
Comment 4 John Stowers 2008-08-22 01:01:00 UTC
Fixed in SVN. $(foo) is a bashism. Als see bug #546478