Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 195940

Summary: app-laptop/laptop-mode-tools uses bashism [[ ... ]] in init file
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: New packagesAssignee: Mobile Herd (OBSOLETE) <mobile+disabled>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198733    

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