Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176128 - x11-wm/compiz-0.5.0: compiz-start lacks shebang
Summary: x11-wm/compiz-0.5.0: compiz-start lacks shebang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 14:46 UTC by Arthur Hagen
Modified: 2007-05-03 02:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Hagen 2007-04-26 14:46:04 UTC
Users who don't use a bourne family shell won't be able to run /usr/bin/compiz-start due to a missing shebang:

--- cut here ---
# compiz-start script
#
# hacky autodetection of neccessary options for XGL/AIGLX/NVIDIA
#
# Hanno Boeck, http://www.hboeck.de/
--- cut here ---

Worse, sh/ash users will be able to run the script, but under special circumstances it won't work, due to a bashism ('export __GL_YIELD="NOTHING"' instead of '__GL_YIELD="NOTHING"; export __GL_YIELD')


Fix:  Set #!/bin/bash
Better, remove the unneccessary bashism, and set #!/bin/sh
Comment 1 Hanno Böck gentoo-dev 2007-05-03 02:46:48 UTC
is it okay so?