Bug 79626
Summary: | for is seriously broken | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Sami Farin <safari+rhbug> |
Component: | bash | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED WORKSFORME | QA Contact: | Ben Levenson <benl> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 8.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | bug in for_command and select_command caused by bug in bison-1.50 - 1.75 | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-12-15 18:09:54 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sami Farin
2002-12-14 05:02:30 UTC
With 2.05b-5 as shipped? Can't reproduce that, sorry. Perhaps you've recompiled the package and used an alpha release of bison? yes.. I recompiled it (I needed the utf8 patches etc & I don't have newer glibc as in RH8). I happen to be running bison-1.75, it's from ftp://ftp.gnu.org/pub/gnu/bison/ if that version is buggy, maybe you could tell bug-bison about it.. or add check for bison version into bash configure script. what bison version should work, by the way? The one we actually shipped with the release. :-) after some hacking, I found out what's the problem... with bison-1.50 - 1.75, after "bison -d -y parse.y", y.tab.c contains { yyval.command = make_for_command (yyvsp[-4].word, add_string_to_list ("\"\"", (WORD_LIST *)NULL), yyvsp[-1].command); } instead of the expected result { yyval.command = make_for_command (yyvsp[-4].word, add_string_to_list ("\"$@\"", (WORD_LIST *)NULL), yyvsp[-1].command); } 1.75 removed $@ ! escaping @ ("\"$\@\"") would be the workaround for this bug with v1.75... I just installed the latest alpha versio, 1.75d, it works fine... both for_command and select_command work. finally, sorry for bothering, but at first I didn't guess this is bison-related. |