Bug 55205
Summary: | bash 2.04.21/2.05.8 env var incompatibility | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Allen Akin <akin> |
Component: | bash | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-10-30 12:17:42 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
Allen Akin
2001-10-27 02:24:29 UTC
I'm not sure whether or not this change is intentional (might be, because a function is not actually a separate process). I've sent a message to the base maintainer, waiting for reply. From: Chet Ramey <chet.cwru.edu> Feature. POSIX.2, section 3.9.5, says: When a function is executed, it shall have the syntax-error and variable-assignment properties described for special built-in utilities in the enumerated list at the beginning of 3.14. Section 3.14 says, in part: Variable assignments specified with special built-in utilities shall remain in effect after the built-in completes... Note that bash behaves this way only when in posix mode. Chet Note that this was a real incompatibility that cost me an afternoon to track down (after upgrading from RH7.1 to 7.2). The shell script in my case was invoked by /sbin/ifup-local. Since the shell behaves differently in POSIX mode, the circumstantial evidence points to some change in the way ifup-local is invoked between 7.1 and 7.2 -- perhaps it's now posixly-correct when it wasn't before. It might be nice to understand what changed, so that no other breakage occurs as a result of the same incompatibility... |