Bug 53804
| Summary: | bash loses export shell functions when added in the .bash_profile script. | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Keith Ansell <keitha> |
| Component: | bash | Assignee: | Tim Waugh <twaugh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Aaron Brown <abrown> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | ||
| 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: | 2002-09-26 01:54:03 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: | |||
I can't reproduce this on Red Hat Linux 8.0. |
From Bugzilla Helper: User-Agent: Mozilla/4.73 [en] (WinNT; I) Description of problem: function echo() { /bin/echo -e "$*"; } export -f echo The above function when added to a .bash_profile script is not exported and therefore available to the user shell. vi tpm echo "prompt :\c" read data the following script display the "\c" and the cursor is displayed on the next line. sh tmp prompt :\c script should look this with the cursor on the same line. prompt : Version-Release number of selected component (if applicable): How reproducible: Sometimes Steps to Reproduce: 1.add the function to .bash_profile 2.login as user 3.sh ./tpm Actual Results: prompt :\c Expected Results: prompt : Additional info: