[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash-Downgrade



On Thu, 05 Jan 2006 the mental interface of
Al Bogner told:

> Um zu testen ob es an der Bash 3.1-1 liegt, weil dvdwizard nicht funktioniert, 
> möchte ich eine ältere Bash probieren. Ich weiß, dass es unter Sarge mit 
> 2.05b-26 funktioniert und unter SuSE mit 3.00.16(1).
> 
> Ist so ein Bash-Downgrade unproblematisch für meinen Sid-Rechern, oder kann 
> ich mir da einiges kaputt machen?
$ dvdwizard
/usr/bin/dvdwizardrc: line 244: syntax error near unexpected token`('
/usr/bin/dvdwizardrc: line 244: `let offsetX=($normX-$tvX)/2+1'
/usr/bin/dvdwizard: line 200: syntax error near unexpected token `('
/usr/bin/dvdwizard: line 200: `    eval cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )'

sagt genau was zu machen ist:

--- dvdwizard.orig	2006-01-05 23:53:10.647533879 +0100
+++ dvdwizard	2006-01-05 23:54:34.197109019 +0100
@@ -197,7 +197,7 @@
     [ -e "$confFile" ] && cmd="${cmd} -C \"$confFile\""
     eval echo "$cmd" >> "$CMDFILE"
     eval $cmd >> "$LOGFILE" 2>&1 || error_out
-    eval cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )
+    eval 'cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )'
     eval VTSM_PIC_$i=\"\$BASEDIR/cpics/VTS$i/\${cshots[0]}\"
 done
 echo "...done"

und


--- dvdwizardrc.orig	2006-01-05 23:52:56.903274735 +0100
+++ dvdwizardrc	2006-01-05 23:54:05.820574075 +0100
@@ -241,8 +241,8 @@
 normDensity="$densityX"x"$densityY"
 tvX=`echo $TVSIZE | cut -dx -f 1`
 tvY=`echo $TVSIZE | cut -dx -f 2`
-let offsetX=($normX-$tvX)/2+1
-let offsetY=($normY-$tvY)/2+1
+let offsetX='($normX-$tvX)/2+1'
+let offsetY='($normY-$tvY)/2+1'
 
 #
 # If no background picture specified, create one

getestet mit ZSH_VERSION=4.3.0-dev-2

Nun, konsequenterweise solltest Du nun 'nen bug melden ;)

Elimar

-- 
  Learned men are the cisterns of knowledge, 
  not the fountainheads ;-)



Reply to: