[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-debian] Re: var/lib/dpkg/info/monotone-server.config: 27: Synt
From: |
Zack Weinberg |
Subject: |
[Monotone-debian] Re: var/lib/dpkg/info/monotone-server.config: 27: Syntax error: Bad substitution |
Date: |
Thu, 14 Feb 2008 10:41:22 -0500 |
[forwarding off-list reply to list for posterity]
On Thu, Feb 14, 2008 at 5:07 AM, Gyron Mkwebo <address@hidden> wrote:
> Thanks a lot mate for your timely reply
Glad to be of help.
> #! /bin/sh
...
> PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
> let n+=1
...
> lrwxrwxrwx 1 root root 4 2007-09-11 10:42 /bin/sh -> dash
This is what I thought was wrong. The shell script fragment above
contains "bashisms" (use of GNU Bash extensions to the shell language)
but /bin/sh is not bash.
This bug was fixed in version 0.37-2 of the Debian package; that or a
later version ought to make its way into Ubuntu in due course. I
don't know how that works. In the meantime, you can work around the
problem by changing the first line of
/var/lib/dpkg/info/monotone-server.postinst to read
#! /bin/bash
and then running "dpkg -a --configure" as root.
zw