Bug 38851 - Bash v2.04 does not pass exported functions to subshells
Bash v2.04 does not pass exported functions to subshells
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-05-02 17:48 EDT by Drew Moseley
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-02 17:48:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Drew Moseley 2001-05-02 17:48:47 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-7.0.1 i686)

If I do "export -f function_foo; bash" I no longer have "function_foo" in
my environment.

I verified that this problem does not exist in bash 2.5 from ftp.gnu.org.

Reproducible: Always
Steps to Reproduce:
1. function foo() { echo HI; }
2. export -f foo
3. bash
4. type -all foo


Actual Results:  bash: type: foo: not found

Expected Results:  foo is a function
foo () 
    echo HI
Comment 1 Bernhard Rosenkraenzer 2001-05-03 08:33:32 EDT
Fixed in 2.05-1

Note You need to log in before you can comment on or make changes to this bug.