Bug 53804 - bash loses export shell functions when added in the .bash_profile script.
Summary: bash loses export shell functions when added in the .bash_profile script.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bash
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-09-19 09:14 UTC by Keith Ansell
Modified: 2007-04-18 16:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-09-26 01:54:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Keith Ansell 2001-09-19 09:14:35 UTC
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:

Comment 1 Tim Waugh 2002-10-11 11:03:02 UTC
I can't reproduce this on Red Hat Linux 8.0.


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