Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20426 - bash-2.05b-r5 seems to b0rked
Summary: bash-2.05b-r5 seems to b0rked
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-04 11:00 UTC by Sebastian Bergmann (RETIRED)
Modified: 2003-12-29 20:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bergmann (RETIRED) gentoo-dev 2003-05-04 11:00:56 UTC
The bash executable built from bash-2.05b-r5 seems to be unable to accept
arguments that are passed to shell scripts.

Have a look at bugs 20271, 20316 and 20317 for the effects of this.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-05-04 13:34:11 UTC
maybe a dupe of bug #20095 
Comment 2 Dean Ellis 2003-05-15 16:19:11 UTC
Having the same problem; downgrading to bash-2.05b-r3 did not resolve the issue, nor do I see anything in any of the other referenced bugs that solves it.

#!/bin/sh
for blah
do
 echo "$blah"
done

This does not pick up any command-line arguments on my system.  Unsure if it's a problem with bash or readline (cannot successfully emerge readline now), but whatever it is, it broke in the last week or so and has rendered my system all but useless.
Comment 3 Dean Ellis 2003-05-15 22:43:10 UTC
For whatever it may be worth, the problem appears to be yacc/bison (bison for me).

Removing the parse.y patch from the bash-2.05b-gentoo.diff 'fixes' the problem, but since that's silly I rebuilt bison and that also corrected the problem.

Only thing I can think of would be a really weird problem caused by one of the gcc/glibc updates and my use of the -march-pentium4 CFLAG.  (Works fine with that flag now, though.)

Hope that helps.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-09-09 04:37:13 UTC
I wonder if byacc might not be a better replacement for bison? Azarah?
Comment 5 solar (RETIRED) gentoo-dev 2003-09-28 13:22:51 UTC
-r7 went stable which include several patches some of which might address
some of these problems.
Comment 6 Andrew Cooks (RETIRED) gentoo-dev 2003-10-07 00:14:27 UTC
Using bash-2.05b-r7 and not sure whether I'm being a dumbass...

If the following is run like ./foo bar

#!/bin/bash
echo $1
exit

the output is: 
bar

But if the script is:
#!/bin/sh
for blah
do
 echo "$blah"
done

and is run with
blah="bar" ./foo
or even 
export blah="bar" ; ./foo
no output is printed.

If run with 
./foo bar bob
the output is:
bar
bob
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2003-10-07 05:06:55 UTC
Andrew, that is the expected output.  Were you expecting something else?

for arg; do echo "$arg"; done

will print all the positional parameters.  If there are no positional parameters,
as in your second and third examples, nothing will be printed, regardless
of the original value of arg.
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-29 20:28:27 UTC
closing as this seems to be a non-issue now