[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nested bash defined functions leads to segmentation fault
From: |
cpr |
Subject: |
Re: nested bash defined functions leads to segmentation fault |
Date: |
Fri, 22 Aug 2003 17:29:57 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4) Gecko/20030624 |
bjdean@unimelb.edu.au wrote:
Machine Type: alpha-dec-osf4.0d
Bash Version: 2.04
Patch Level: 0
Release Status: release
Description:
Segementation fault caused by calling more than two defined
functions inside
of a defined function.
Example:
function a { echo a }
This is a syntax error unless the `}' is preceded by a semicolon.
function b { a; a; }
Works fine, but:
function b { a; a; a; }
Will segfault
I can't reproduce it, at least not with any version of bash-2.05. (I
don't have any bash-2.04 binaries handy.) A stack traceback from the
core dump would be helpful.
Chet