Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195940 - app-laptop/laptop-mode-tools uses bashism [[ ... ]] in init file
Summary: app-laptop/laptop-mode-tools uses bashism [[ ... ]] in init file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 198733
  Show dependency tree
 
Reported: 2007-10-15 11:57 UTC by Martin Väth
Modified: 2009-03-17 02:14 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 Martin Väth 2007-10-15 11:57:29 UTC
The init-file (files/laptop_mode.init) of app-laptop/laptop-mode-tools uses the bashism [[ ... ]] which breaks with baselayout-2.

A simple solution is to replace [[ ... ]] by [ ... ] in that file.
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2009-02-28 06:48:58 UTC
this should be fixed in the init script for version 1.47
Comment 2 Martin Väth 2009-03-01 06:51:41 UTC
I waited some days to be absolute sure the new version has hit the mirror,
but the crucial line 14 of the new init-script is still the same
([[ .... ]] instead of [ ... ]).

So I am afraid that I have to re-open the bug.

(I have to add to the original report: ...it breaks if e.g. /bin/sh is a symlink
to dash, because [[ ... ]] is not POSIX-conformal as required by baselayout-2).
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2009-03-17 02:14:12 UTC
fixed in -r1