[Bug 210425] [NEW] firefox uses wrong shell to call /etc/init.d/xprint
Hadmut Danisch
hadmut at danisch.de
Tue Apr 1 19:28:38 UTC 2008
Public bug reported:
Binary package hint: firefox
Hi,
when starting firefox from the command line, you'll get a syntax error
message:
/etc/init.d/xprint: 531: Syntax error: Bad substitution
Reason:
/usr/lib/firefox/run-mozilla.sh calls /etc/init.d/xprint :
if [ -f /etc/init.d/xprint ] ; then
XPSERVERLIST="`/bin/sh /etc/init.d/xprint get_xpserverlist`"
...
so it uses /bin/sh to execute /etc/init.d/xprint
/etc/init.d/xprint uses the extended shell syntax of bash.
on my system:
lrwxrwxrwx 1 root root 4 2007-08-11 23:52 /bin/sh -> dash*
and dash does not understand bash syntax.
So it is wrong to call /bin/sh /etc/init.d/xprint
Proposal:
first check whether /etc/init.d/xprint is executable. If so, call it directly.
If not, use /bin/sh.
regards
Hadmut
** Affects: firefox (Ubuntu)
Importance: Undecided
Status: New
--
firefox uses wrong shell to call /etc/init.d/xprint
https://bugs.launchpad.net/bugs/210425
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in ubuntu.
More information about the Ubuntu-mozillateam-bugs
mailing list