Bug 61848 - Conflict between function and alias crashes zsh
Conflict between function and alias crashes zsh
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: zsh (Show other bugs)
7.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-03-25 03:37 EST by Jan Iven
Modified: 2007-04-18 12:41 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-25 16:18:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Iven 2002-03-25 03:37:38 EST
Description of Problem:


Defining an alias and a shell function with the same name and trying to
execute it crashes ZSH shell.

Version-Release number of selected component (if applicable):

zsh-4.0.2-2

How Reproducible:

always.

Steps to Reproduce:
    [lxshare002d] /home/test > zsh
    [lxshare002d] ~ % alias xx='echo ALIAS'
    [lxshare002d] ~ % xx
    ALIAS
    [lxshare002d] ~ % xx()
    function> { echo FUNC }
    [lxshare002d] ~ % which xx
    xx: aliased to echo ALIAS
    [lxshare002d] ~ % xx
    Segmentation fault

Actual Results:

crash, backtrace looks rather recursive...


Expected Results:

either function or alias results, or at least an error message..

Additional Information:
Comment 1 Trond Eivind Glomsrxd 2002-03-25 16:18:06 EST
A problem with 4.0.4.. reported upstream.
Comment 2 Trond Eivind Glomsrxd 2002-03-25 19:01:25 EST
Not a bug, read http://zsh.sunsite.dk/FAQ/zshfaq02.html#23

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