Debian Bug report logs - #167635
bash: implicit $* param expansion in for loops is broken

version graph

Package: bash; Maintainer for bash is Matthias Klose <doko@debian.org>; Source for bash is src:bash (PTS, buildd, popcon).

Reported by: Bastian Kleineidam <calvin@debian.org>

Date: Mon, 4 Nov 2002 01:08:34 UTC

Severity: important

Tags: sid

Merged with 167646

Found in version 2.05b-4

Fixed in version bash/2.05b-5

Done: Matthias Klose <doko@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org:
Bug#167635; Package bash. (full text, mbox, link).


Acknowledgement sent to Bastian Kleineidam <calvin@debian.org>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Bastian Kleineidam <calvin@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash: implicit $* param expansion in for loops is broken
Date: Mon, 04 Nov 2002 02:03:07 +0100
Package: bash
Version: 2.05b-4
Severity: important
Tags: sid

This should be equal: "for t" and "for t in $*".
But it is not anymore:
----- test.sh -----
#!/bin/sh
# print out param list twice:
for t in $*
do
echo $t
done

for t
do
echo $t
done
----- test.sh -----
./test.sh 1 2 3
1
2
3


This makes all ./configure scripts useless, as they are not
accepting commandline parameters anymore!

Cheers, Bastian (trying to grab an old bash version now :)

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux treasure 2.4.18 #1 Tue Oct 22 01:27:19 CEST 2002 i686
Locale: LANG=C, LC_CTYPE=de_DE@euro

Versions of packages bash depends on:
hi  base-files               3.0.5           Debian base system miscellaneous f
hi  libc6                    2.3.1-3         GNU C Library: Shared libraries an
hi  libncurses5              5.2.20020112a-8 Shared libraries for terminal hand

-- no debconf information




Merged 167635 167646. Request was from Chris Hanson <cph@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org:
Bug#167635; Package bash. (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@cs.tu-berlin.de>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org. (full text, mbox, link).


Message #12 received at 167635@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@cs.tu-berlin.de>
To: Bastian Kleineidam <calvin@debian.org>, 167635@bugs.debian.org
Cc: chet@po.cwru.edu
Subject: Re: Bug#167635: bash: implicit $* param expansion in for loops is broken
Date: Mon, 4 Nov 2002 09:08:49 +0100
ok, seems like bash doesn't like bison > 1.35 for building (Debian now
has 1.75 as the default).

Bastian Kleineidam writes:
> Package: bash
> Version: 2.05b-4
> Severity: important
> Tags: sid
> 
> This should be equal: "for t" and "for t in $*".
> But it is not anymore:
> ----- test.sh -----
> #!/bin/sh
> # print out param list twice:
> for t in $*
> do
> echo $t
> done
> 
> for t
> do
> echo $t
> done
> ----- test.sh -----
> ./test.sh 1 2 3
> 1
> 2
> 3
> 
> 
> This makes all ./configure scripts useless, as they are not
> accepting commandline parameters anymore!
> 
> Cheers, Bastian (trying to grab an old bash version now :)
> 
> -- System Information:
> Debian Release: testing/unstable
> Architecture: i386
> Kernel: Linux treasure 2.4.18 #1 Tue Oct 22 01:27:19 CEST 2002 i686
> Locale: LANG=C, LC_CTYPE=de_DE@euro
> 
> Versions of packages bash depends on:
> hi  base-files               3.0.5           Debian base system miscellaneous f
> hi  libc6                    2.3.1-3         GNU C Library: Shared libraries an
> hi  libncurses5              5.2.20020112a-8 Shared libraries for terminal hand
> 
> -- no debconf information
> 



Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Bastian Kleineidam <calvin@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #17 received at 167635-close@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: 167635-close@bugs.debian.org
Subject: Bug#167635: fixed in bash 2.05b-5
Date: Mon, 04 Nov 2002 03:32:11 -0500
We believe that the bug you reported is fixed in the latest version of
bash, which is due to be installed in the Debian FTP archive:

bash-builtins_2.05b-5_i386.deb
  to pool/main/b/bash/bash-builtins_2.05b-5_i386.deb
bash-doc_2.05b-5_all.deb
  to pool/main/b/bash/bash-doc_2.05b-5_all.deb
bash_2.05b-5.diff.gz
  to pool/main/b/bash/bash_2.05b-5.diff.gz
bash_2.05b-5.dsc
  to pool/main/b/bash/bash_2.05b-5.dsc
bash_2.05b-5_i386.deb
  to pool/main/b/bash/bash_2.05b-5_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 167635@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated bash package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.7
Date: Mon,  4 Nov 2002 09:30:39 +0100
Source: bash
Binary: bash-builtins bash bash-doc
Architecture: source i386 all
Version: 2.05b-5
Distribution: unstable
Urgency: high
Maintainer: Matthias Klose <doko@debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 bash       - The GNU Bourne Again SHell
 bash-builtins - Bash loadable builtins - headers & examples
 bash-doc   - Documentation and examples for the The GNU Bourne Again SHell
Closes: 167635
Changes: 
 bash (2.05b-5) unstable; urgency=high
 .
   * Build-depend on bison-1.35 (closes: #167635).
Files: 
 075e864c136118ecb17aee77a7113c1d 966 base required bash_2.05b-5.dsc
 4f619a368d950e3da5fcd08ee2504c1f 110205 base required bash_2.05b-5.diff.gz
 6a2281d7c5b64328bac153284bbb3e07 260676 doc optional bash-doc_2.05b-5_all.deb
 c684052df91f33431c7028e9ff45a28a 587578 base required bash_2.05b-5_i386.deb
 6e55d05ef3d42db3fec89d70d13ba754 103008 utils optional bash-builtins_2.05b-5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBPcY3uAuDzMCIcnEhAQHttAf9HN+uTUJcPS7rxaMDcAaAJp1+rQmLtSxo
5tnVYxhtL7GLKls1iKSTVRI+K3/9YuLOpUxCb10Rhry/y1mV7UbMWYRNsxOhlF3j
ofsS8L6tsG00Kq6hly0xgyzMQEn5mxcnR3R7l775MfLNnWpJLhtO5l25YPYjARXk
9aHW1/BTLRRUYbraXuTw1odro2dlSsCpvqOVbJW+xlAyM37i5JdtizNsFWbYTwjH
ToVPJl2F1FjovY/1GEW2cWyUQRneABPIysjxSJJ+3siPunXex1JsKZQRXcvT25jT
41nuTGOqzn6lXhMhCY3qxd9QKOfvkz1mywFrUxHBYwjEoN7MZe5dYg==
=kK37
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org:
Bug#167635; Package bash. (full text, mbox, link).


Acknowledgement sent to chet@po.CWRU.Edu:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org. (full text, mbox, link).


Message #22 received at 167635@bugs.debian.org (full text, mbox, reply):

From: Chet Ramey <chet@nike.ins.cwru.edu>
To: doko@cs.tu-berlin.de
Cc: calvin@debian.org, 167635@bugs.debian.org, chet@po.cwru.edu, chet@po.cwru.edu
Subject: Re: Bug#167635: bash: implicit $* param expansion in for loops is broken
Date: Mon, 4 Nov 2002 09:47:09 -0500
> ok, seems like bash doesn't like bison > 1.35 for building (Debian now
> has 1.75 as the default).

I can't reproduce this.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



Information forwarded to bash@packages.qa.debian.org:
Bug#167635; Package bash. (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@cs.tu-berlin.de>:
Extra info received and filed, but not forwarded. Copy sent to bash@packages.qa.debian.org. (full text, mbox, link).


Message #27 received at 167635-quiet@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@cs.tu-berlin.de>
To: 167692-submitter@bugs.debian.org, 167692-quiet@bugs.debian.org, 167702-submitter@bugs.debian.org, 167702-quiet@bugs.debian.org, 167635-submitter@bugs.debian.org, 167635-quiet@bugs.debian.org, 167646-submitter@bugs.debian.org, 167646-quiet@bugs.debian.org, 167664-submitter@bugs.debian.org, 167664-quiet@bugs.debian.org, 167666-submitter@bugs.debian.org, 167666-quiet@bugs.debian.org, 167668-submitter@bugs.debian.org, 167668-quiet@bugs.debian.org
Subject: bash: implicit $* param expansion in for loops is broken
Date: Mon, 4 Nov 2002 17:31:59 +0100
These bugs have been fixed in version 2.05b-5, availaible in the
incoming directory or at http://ftp-master.debian.org/~doko/bash/
For another quick fix, reinstall the 2.05b-3 version, or install
the dash package and divert the /bin/sh symlink.



Message sent on to Bastian Kleineidam <calvin@debian.org>:
Bug#167635. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org:
Bug#167635; Package bash. (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@cs.tu-berlin.de>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org. (full text, mbox, link).


Message #35 received at 167635@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@cs.tu-berlin.de>
To: chet@po.CWRU.Edu, 167635@bugs.debian.org
Subject: Re: Bug#167635: bash: implicit $* param expansion in for loops is broken
Date: Tue, 5 Nov 2002 00:23:46 +0100
[Message part 1 (text/plain, inline)]
Chet Ramey writes:
> > ok, seems like bash doesn't like bison > 1.35 for building (Debian now
> > has 1.75 as the default).
> 
> I can't reproduce this.

Are you able to reproduce it with the attached files, generated by
bison-1.75?

[y.tgz (application/octet-stream, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org:
Bug#167635; Package bash. (full text, mbox, link).


Acknowledgement sent to chet@po.CWRU.Edu:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>, bash@packages.qa.debian.org. (full text, mbox, link).


Message #40 received at 167635@bugs.debian.org (full text, mbox, reply):

From: Chet Ramey <chet@nike.ins.cwru.edu>
To: doko@cs.tu-berlin.de
Cc: chet@po.cwru.edu, 167635@bugs.debian.org
Subject: Re: Bug#167635: bash: implicit $* param expansion in for loops is broken
Date: Wed, 6 Nov 2002 10:49:30 -0500
> Chet Ramey writes:
> > > ok, seems like bash doesn't like bison > 1.35 for building (Debian now
> > > has 1.75 as the default).
> > 
> > I can't reproduce this.
> 
> Are you able to reproduce it with the attached files, generated by
> bison-1.75?

Yes.  The problem is obvious, given the output from bison-1.75.  Bison
is translating this string, which appears in parse.y:

	"\"$@\""

to the following, which appears in the generated y.tab.c:

	"\"\""

What is bison doing with the `$@'?

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Dec 6 06:59:57 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.