Bug 758844 - /usr/bin/firefox script relies on non-posix syntax (bash) & fails if dash is the default shell
Summary: /usr/bin/firefox script relies on non-posix syntax (bash) & fails if dash is ...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 16
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Horak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-30 19:58 UTC by Dano
Modified: 2012-03-29 13:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-29 13:55:24 UTC
Type: ---


Attachments (Terms of Use)

Description Dano 2011-11-30 19:58:11 UTC
Description of problem:
/usr/bin/firefox script defines #!/bin/sh
but will not work if the default system shell
is dash. IMHO the script, if not rewritten
to be purely POSIX compliant, should begin
with "#! /bin/bash" line (because it expects
BASH apparently).

Version-Release number of selected component (if applicable):
firefox-8.0-3.fc16.x86_64

How reproducible:
change the default system shell to dash (or ksh)

Steps to Reproduce:
1. ln -f -s /bin/dash /bin/sh
2. /usr/bin/firefox &
  
Actual results:
# /usr/bin/firefox
[: 76: /usr/lib64: unexpected operator
/usr/bin/firefox: 195: Syntax error: "(" unexpected (expecting "fi")

Expected results:
firefox should start

Additional info:
- verbose xtrace output: http://pastebin.com/eUYm3G25
- non-verbose xtrace output: http://pastebin.com/suG4K4cK

Comment 1 Jan Horak 2012-03-29 13:55:24 UTC
Thanks for report, this will be fixed by next package update.


Note You need to log in before you can comment on or make changes to this bug.