Problem in the run-mozilla.sh script

Erik <[email protected]> Tue, 24 Feb 2004 21:15:52 +0000
Newsgroups gmane.comp.mozilla.patches
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hello. I don't know if anyone has found this problem before but the 
comments in the run-mozilla.sh script said to post ideas for 
improvements to these groups, so here it is...

After installing netscape 7.1 I tried running it by typing "./netscape". 
I kept getting "dirname: too many arguments". The "netscape" script uses 
"dirname" three times but the problem didn't seem to be here. I followed 
the execution flow into the "run-mozilla.sh" script and found only one 
"dirname" on line 58, and here is the problem. Line 58 has:

	MOZ_DIST_BIN=`dirname $0`

This needs to be:

	MOZ_DIST_BIN=`dirname "$0"`

The reason I got the error was because the path I installed netscape in 
("/usr/internet/browsers/netscape 7.1") has a space in it. So this 
modification to the "run-mozilla.sh" script will probably be of use to 
other people.

Not bad for a linux newbie who can't write perl, or whatever this 
scripting is. Still, being a talented programmer does help. :) I even 
got a samba network up and running, even with having to compile from 
source. I'm having a damn good day today. Hehe

Anyway, hope this script alteration is useful to some people.

--
Erik