Bug#374185: mkvmlinuz: syntax errors in script
On Wed, Jul 12, 2006 at 09:50:53AM +0100, Colin Watson wrote:
> reopen 374185
> thanks
>
> On Sat, Jun 17, 2006 at 08:15:29PM +0200, Wouter Verhelst wrote:
> > --- mkvmlinuz.orig 2006-06-17 20:03:05.000000000 +0200
> > +++ /usr/sbin/mkvmlinuz 2006-06-17 20:13:40.000000000 +0200
> > @@ -60,7 +60,7 @@
> > esac
> >
> > # use non-option arguments as release version and kernel image file if needed
> > -shift $((OPTIND-1))
> > +shift $(( $OPTIND - 1 ))
> > if test -z "$release" -a -n "$1"; then
> > release=$1
> > fi
>
> This part of the report is still valid no matter whether you're using
> dash or bash. In bash, I get:
>
> /usr/sbin/mkvmlinuz: 61: arith: syntax error: "OPTIND-1"
>
> Please apply this part of Wouter's patch.
If you explain to me why i never saw this problem myself though.
That said, it is indeed logical to add spaces, and if so i don't understand
why it didn't work previously.
Friendly,
Sven Luther
Reply to: