From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.7) Gecko/20011221 Description of problem: The bash construct ${varname:-} is used all over the file but in one occurrence in the pidofproc funcion the ':' and '-' chars have their positions swapped (demons- trated with a small patch fixing the problem): +++ functions Mon Jan 28 12:00:22 2002 @@ -250,7 +250,7 @@ for p in $line ; do [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p" done - if [ -n "${pid-:}" ] ; then + if [ -n "${pid:-}" ] ; then echo $pid return 0 fi Version-Release number of selected component (if applicable): initscripts-6.40-1 How reproducible: Always Steps to Reproduce: 1. $ less /etc/init.d/functions 2. search by -: by typing '/-:' 3. the line spotted is the bug Actual Results: if [ -n "${pid-:}" ] ; then Expected Results: should read if [ -n "${pid:-}" ] ; then Additional info: See (related) bugs #56174 and #57526
Eep. Fixed in CVS, will be in 6.53-1.