On Tue, Apr 11, 2006 at 08:04:39PM +0200, Michelle Konzack wrote:
> Package: grep
> Version: 2.5.1.ds1-4
> Severity: grave
>
> Error description:
>
> I have a BASH script which do
>
> zgrep "^Filename: " $PATH_TMP/Packages.gz
>
> which was working since years, but now I get
Since when? grep hasn't changed. You might check /var/log/dpkg.log.
> /bin/zgrep: 103: Syntax error: Bad substitution
>
> which mean, I need to rewrite all of my BASH scripts and need to
> check all of my customes, because the scripts do not more work.
>
> I consider this bug as "grave" because it breaks backup and update
> scripts for tele-maintenance.
What shell are you using as /bin/sh ? Line 103 of zgrep is:
i=$(echo "$i" | sed -e 's/[\\|&]/\\&/g')
What if you replace that with:
i=`echo "$i" | sed -e 's/[\\|&]/\\&/g'`
Could you try running the script with set -x?
Justin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]