Bug 680875 - which command print out only the first line of an alias
Summary: which command print out only the first line of an alias
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: which
Version: 5.3
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Than Ngo
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-28 09:45 UTC by Tom Molin
Modified: 2013-03-26 17:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-26 17:37:41 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Tom Molin 2011-02-28 09:45:09 UTC
Description of problem:
The command which only returns one line when creating a multi-line alias in bash. See example below

Version-Release number of selected component (if applicable):
~ > which --version
GNU which v2.16, Copyright (C) 1999 - 2003 Carlo Wood.

How reproducible:
see below

Steps to Reproduce:
~ > cat test 
alias test='cd /tmp
pwd
cd
pwd
'
~ > source ./test
~ > which test
alias test='cd /tmp
~ >
  
Actual results:
~ > which test
alias test='cd /tmp

Expected results:
~ > which test
alias test='cd /tmp
pwd
cd
pwd
'

Additional info:
the command "alias test" gives the expected result.

Comment 1 Phil Knirsch 2013-03-26 17:37:41 UTC
This request was evaluated by Red Hat Engineering for inclusion in a Red
Hat Enterprise Linux maintenance release.

Red Hat does not currently plan to provide this change in a Red Hat Enterprise
Linux update release for currently deployed products.

With the goal of minimizing risk of change for deployed systems, and in
response to customer and partner requirements, Red Hat takes a conservative
approach when evaluating enhancements for inclusion in maintenance updates
for currently deployed products. The primary objectives of update releases
are to enable new hardware platform support and to resolve critical
defects.

However, Red Hat will further review this request for potential inclusion
in future major releases of Red Hat Enterprise Linux.


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