Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60989 - sys-apps/hdparm-5.6 init script error
Summary: sys-apps/hdparm-5.6 init script error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 00:59 UTC by Peter Buxton
Modified: 2004-08-20 01:17 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 Peter Buxton 2004-08-20 00:59:58 UTC
Quote argument to [ -z ] in shell script to avoid '[: too many arguments' error.


--- /etc/init.d/hdparm.broke    2004-08-20 03:55:34.405137408 -0400
+++ /etc/init.d/hdparm  2004-08-20 03:49:27.919851640 -0400
@@ -61,7 +61,7 @@
                 fi
             done
 
-            [ -z $args ] && for alias in /dev/discs/*
+            [ -z "$args" ] && for alias in /dev/discs/*
             do
                 if [ $alias/disc -ef $device ]
                 then
Comment 1 Jon Portnoy (RETIRED) gentoo-dev 2004-08-20 01:17:50 UTC
Fixed in CVS, thanks.