Bug 817155 - source function not working as expected.
Summary: source function not working as expected.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: bash
Version: 5.9
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Roman Rakus
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-27 20:55 UTC by Benjamin H. Graham
Modified: 2014-01-13 00:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-12 14:27:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Benjamin H. Graham 2012-04-27 20:55:52 UTC
Description of problem:

sourcing of remote files does not work as expected.  This does not affect RHEL6 or debian distributions.

I would expect the same from both bash and source whereas this is not true.

Sample Output:
[user@host ~]# source <(GET a8.lc/bashrc)
[user@host ~]# bash <(GET a8.lc/bashrc)
bar

where bashrc contents are this:
foo="bar";
echo $foo;


Version-Release number of selected component (if applicable):
bash internal "source" function.
bash-3.2-24.el5
also present on RHEL4

How reproducible:
always

Steps to Reproduce:
1. source <(curl -s a8.lc/bashrc)
  
Actual results:
nothing

Expected results:
bar

Additional info:
contact me for more info.

Comment 1 Roman Rakus 2013-03-12 14:27:55 UTC
RHEL-5.10 (the next RHEL-5 minor release) is going to be the first production phase 2 [1] release of RHEL-5. Since phase 2 we'll be addressing only security and critical issues.

[1] https://access.redhat.com/support/policy/updates/errata/


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