Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-26 Thread Michelle Konzack
Am 2006-04-21 11:06:54, schrieb Julien Cristau:
 On Tue, Apr 11, 2006 at 20:04:39 +0200, Michelle Konzack wrote:
 
  Package: grep
  Version: 2.5.1.ds1-4
  Severity: grave
  
  Error description:
  
  /bin/zgrep: 103: Syntax error: Bad substitution
  
 Hi,
 
 zgrep is part of the gzip package, not grep.

OK

 This bug looks a lot like 314342 and friends, which have been fixed a
 long time ago:
 gzip (1.3.5-11) unstable; urgency=low

OK, but I am using Sarge/Stable.  Having a broken zgrep makes many
scripts unusable and breaks things.  It should be fixed in Stable too.

 Line 103 of newer zgrep is not a substitution, so it seems like your
 /bin/sh is not bash and your gzip package is old (the Bad substitution

bash:   Oh Yes, it is
gzip:   Its the newest one I find in Stable ;-)

Sorry, but an a productionsserver with Apache, courier ssh,
php5 and more plus 6900 Domains and over 24.000 VHosts I do
not like to install UNSTABLE.

 string appears in dash, but not in bash or sed).

I use ONLY bash.

 Could you send the output of ls -l /bin/sh and dpkg -l gzip on a
 machine where this problem occurs?

[ cmd 'ls -l /bin/bash' ]---

-rwxr-xr-x  1 root root 625228 2004-12-19 17:53 /bin/bash



[ cmd 'dpkg -l gzip' ]--

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Säubern/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/Fehlgeschl. Konf./Halb install.
|/ Fehler?=(keiner)/Halten/R=Neuinst. notw/X=beides (Status, Fehler: 
GROß=schlecht)
||/ Name   VersionBeschreibung
+++-==-==-
ii  gzip   1.3.5-10   The GNU compression utility




Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/3/8845235667100 Strasbourg/France   IRC #Debian (irc.icq.com)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-24 Thread Julien Cristau
On Fri, Apr 21, 2006 at 21:11:27 +0200, Michelle Konzack wrote:

 Am 2006-04-21 11:06:54, schrieb Julien Cristau:
  This bug looks a lot like 314342 and friends, which have been fixed a
  long time ago:
  gzip (1.3.5-11) unstable; urgency=low
 
 OK, but I am using Sarge/Stable.  Having a broken zgrep makes many
 scripts unusable and breaks things.  It should be fixed in Stable too.
 
It most probably won't be, because this is not a critical bug [in the
gzip package] which can lead to data loss, data corruption, or an overly
broken system.

  Line 103 of newer zgrep is not a substitution, so it seems like your
  /bin/sh is not bash and your gzip package is old (the Bad substitution
 
 bash:   Oh Yes, it is
 gzip:   Its the newest one I find in Stable ;-)
 
 Sorry, but an a productionsserver with Apache, courier ssh,
 php5 and more plus 6900 Domains and over 24.000 VHosts I do
 not like to install UNSTABLE.
 
  string appears in dash, but not in bash or sed).
 
 I use ONLY bash.
 
  Could you send the output of ls -l /bin/sh and dpkg -l gzip on a
  machine where this problem occurs?
 
 [ cmd 'ls -l /bin/bash' ]---
 
 -rwxr-xr-x  1 root root 625228 2004-12-19 17:53 /bin/bash
 
What I asked for was /bin/sh, not /bin/bash.
zgrep is a #!/bin/sh script, and I believe your /bin/sh is *not* bash.
Setting /bin/sh to point to bash would probably fix your problem with
zgrep.

Cheers,
Julien Cristau


signature.asc
Description: Digital signature


Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-23 Thread Michelle Konzack
Am 2006-04-21 11:06:54, schrieb Julien Cristau:
 On Tue, Apr 11, 2006 at 20:04:39 +0200, Michelle Konzack wrote:
 
  Package: grep
  Version: 2.5.1.ds1-4
  Severity: grave
  
  Error description:
  
  /bin/zgrep: 103: Syntax error: Bad substitution
  
 Hi,
 
 zgrep is part of the gzip package, not grep.

OK

 This bug looks a lot like 314342 and friends, which have been fixed a
 long time ago:
 gzip (1.3.5-11) unstable; urgency=low

OK, but I am using Sarge/Stable.  Having a broken zgrep makes many
scripts unusable and breaks things.  It should be fixed in Stable too.

 Line 103 of newer zgrep is not a substitution, so it seems like your
 /bin/sh is not bash and your gzip package is old (the Bad substitution

bash:   Oh Yes, it is
gzip:   Its the newest one I find in Stable ;-)

Sorry, but an a productionsserver with Apache, courier ssh,
php5 and more plus 6900 Domains and over 24.000 VHosts I do
not like to install UNSTABLE.

 string appears in dash, but not in bash or sed).

I use ONLY bash.

 Could you send the output of ls -l /bin/sh and dpkg -l gzip on a
 machine where this problem occurs?

[ cmd 'ls -l /bin/bash' ]---

-rwxr-xr-x  1 root root 625228 2004-12-19 17:53 /bin/bash



[ cmd 'dpkg -l gzip' ]--

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Säubern/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/Fehlgeschl. Konf./Halb install.
|/ Fehler?=(keiner)/Halten/R=Neuinst. notw/X=beides (Status, Fehler: 
GROß=schlecht)
||/ Name   VersionBeschreibung
+++-==-==-
ii  gzip   1.3.5-10   The GNU compression utility




Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/3/8845235667100 Strasbourg/France   IRC #Debian (irc.icq.com)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-23 Thread Michelle Konzack
Am 2006-04-21 11:06:54, schrieb Julien Cristau:
 On Tue, Apr 11, 2006 at 20:04:39 +0200, Michelle Konzack wrote:
 
  Package: grep
  Version: 2.5.1.ds1-4
  Severity: grave
  
  Error description:
  
  /bin/zgrep: 103: Syntax error: Bad substitution
  
 Hi,
 
 zgrep is part of the gzip package, not grep.

OK

 This bug looks a lot like 314342 and friends, which have been fixed a
 long time ago:
 gzip (1.3.5-11) unstable; urgency=low

OK, but I am using Sarge/Stable.  Having a broken zgrep makes many
scripts unusable and breaks things.  It should be fixed in Stable too.

 Line 103 of newer zgrep is not a substitution, so it seems like your
 /bin/sh is not bash and your gzip package is old (the Bad substitution

bash:   Oh Yes, it is
gzip:   Its the newest one I find in Stable ;-)

Sorry, but an a productionsserver with Apache, courier ssh,
php5 and more plus 6900 Domains and over 24.000 VHosts I do
not like to install UNSTABLE.

 string appears in dash, but not in bash or sed).

I use ONLY bash.

 Could you send the output of ls -l /bin/sh and dpkg -l gzip on a
 machine where this problem occurs?

[ cmd 'ls -l /bin/bash' ]---

-rwxr-xr-x  1 root root 625228 2004-12-19 17:53 /bin/bash



[ cmd 'dpkg -l gzip' ]--

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Säubern/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/Fehlgeschl. Konf./Halb install.
|/ Fehler?=(keiner)/Halten/R=Neuinst. notw/X=beides (Status, Fehler: 
GROß=schlecht)
||/ Name   VersionBeschreibung
+++-==-==-
ii  gzip   1.3.5-10   The GNU compression utility




Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/3/8845235667100 Strasbourg/France   IRC #Debian (irc.icq.com)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-23 Thread Justin Pryzby
On Fri, Apr 21, 2006 at 09:11:27PM +0200, Michelle Konzack wrote:
 Am 2006-04-21 11:06:54, schrieb Julien Cristau:
  On Tue, Apr 11, 2006 at 20:04:39 +0200, Michelle Konzack wrote:
  
   Package: grep
   Version: 2.5.1.ds1-4
   Severity: grave
   
   Error description:
   
   /bin/zgrep: 103: Syntax error: Bad substitution
   
  Hi,
  
  zgrep is part of the gzip package, not grep.
 
 OK
 
  This bug looks a lot like 314342 and friends, which have been fixed a
  long time ago:
  gzip (1.3.5-11) unstable; urgency=low
 
 OK, but I am using Sarge/Stable.  Having a broken zgrep makes many
 scripts unusable and breaks things.  It should be fixed in Stable too.
 
  Line 103 of newer zgrep is not a substitution, so it seems like your
  /bin/sh is not bash and your gzip package is old (the Bad substitution
 
 bash:   Oh Yes, it is
 gzip:   Its the newest one I find in Stable ;-)
 
 Sorry, but an a productionsserver with Apache, courier ssh,
 php5 and more plus 6900 Domains and over 24.000 VHosts I do
 not like to install UNSTABLE.
 
  string appears in dash, but not in bash or sed).
 
 I use ONLY bash.
 
  Could you send the output of ls -l /bin/sh and dpkg -l gzip on a
  machine where this problem occurs?
 
 [ cmd 'ls -l /bin/bash' ]---
 
 -rwxr-xr-x  1 root root 625228 2004-12-19 17:53 /bin/bash
ls -l /bin/sh (not /bin/bash)

 [ cmd 'dpkg -l gzip' ]--
 
 Gew?nscht=Unbekannt/Installieren/R=Entfernen/P=S?ubern/Halten
 | Status=Nicht/Installiert/Config/U=Entpackt/Fehlgeschl. Konf./Halb install.
 |/ Fehler?=(keiner)/Halten/R=Neuinst. notw/X=beides (Status, Fehler: 
 GRO?=schlecht)
 ||/ Name   VersionBeschreibung
 +++-==-==-
 ii  gzip   1.3.5-10   The GNU compression utility
Why not 1.3.5-10sarge1??

gzip | 1.3.5-10sarge1 |stable | source, alpha, arm, hppa, i386, ia64, 
m68k, mips, mipsel, powerpc, s390, sparc

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-21 Thread Julien Cristau
On Tue, Apr 11, 2006 at 20:04:39 +0200, Michelle Konzack wrote:

 Package: grep
 Version: 2.5.1.ds1-4
 Severity: grave
 
 Error description:
 
 /bin/zgrep: 103: Syntax error: Bad substitution
 
Hi,

zgrep is part of the gzip package, not grep.
This bug looks a lot like 314342 and friends, which have been fixed a
long time ago:
gzip (1.3.5-11) unstable; urgency=low

  * patch from Peter Samuelson for bashism in zgrep, 
closes: #314342, #314211, #312380, #310329

 -- Bdale Garbee [EMAIL PROTECTED]  Wed, 15 Jun 2005 14:39:11 -0600

Line 103 of newer zgrep is not a substitution, so it seems like your
/bin/sh is not bash and your gzip package is old (the Bad substitution
string appears in dash, but not in bash or sed).
Could you send the output of ls -l /bin/sh and dpkg -l gzip on a
machine where this problem occurs?

Thanks,
Julien Cristau


signature.asc
Description: Digital signature


Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-17 Thread Michelle Konzack
Hello Justin,

Am 2006-04-15 11:50:15, schrieb Justin Pryzby:

 Since when?  grep hasn't changed.  You might check /var/log/dpkg.log.

Since Sarge...

  /bin/zgrep: 103: Syntax error: Bad substitution

 What shell are you using as /bin/sh ?  Line 103 of zgrep is:

Bash.

   i=$(echo $i | sed -e 's/[\\|]/\\/g')
 
 What if you replace that with:
 
   i=`echo $i | sed -e 's/[\\|]/\\/g'`

The same problem, because of sed.  I had some scripts allready
which do not like my old RegExp.  It seems, the RegExp used in
zgrep does not more work

 Could you try running the script with set -x?

Yes, but it is definitivly the RegExp from sed, which does not
more work.

Greetings
Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/3/8845235667100 Strasbourg/France   IRC #Debian (irc.icq.com)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-15 Thread Michelle Konzack
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

/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.

Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- System Information
Debian Release: 3.1
Kernel Version: Linux michelle1.private 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 
2005 i686 GNU/Linux


Versions of the packages grep depends on:
ii  libc6  2.3.2.ds1-22   GNU C Library: Shared libraries and Timezone



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-15 Thread Justin Pryzby
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]



Bug#362786: zgrep gives Syntaxerror since Sarge

2006-04-15 Thread Martin Michlmayr
* Justin Pryzby [EMAIL PROTECTED] [2006-04-15 11:50]:
  
  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.

sed has changed.
-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]