Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 61848 - Conflict between function and alias crashes zsh
Conflict between function and alias crashes zsh
Product: Red Hat Linux
Classification: Retired
Component: zsh (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Aaron Brown
Depends On:
  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:
Last Closed: 2002-03-25 16:18:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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):


How Reproducible:


Steps to Reproduce:
    [lxshare002d] /home/test > zsh
    [lxshare002d] ~ % alias xx='echo ALIAS'
    [lxshare002d] ~ % xx
    [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.