bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: infinitive recursion causes segfault


From: Chet Ramey
Subject: Re: infinitive recursion causes segfault
Date: Thu, 19 Feb 2009 08:54:40 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Roman Rakus wrote:
> Chet Ramey wrote:
>> yozh@mx1.ru wrote:
>>
>>  
>>> Bash Version: 3.1
>>> Patch Level: 17
>>> Release Status: release
>>>
>>> Description:
>>>     Create a function that calls itself. Call it. You'll get
>>> segfault. Expecting message on terminal.
>>>     
>>
>> That's not a good expectation.
>>
>> If you want to shoot yourself in the foot, bash will not stop you.
>>   
> What about adding `maximum nested function level'? Counter already is
> there (and don't used). And make it configurable like in zsh. I can
> provide patch.

I'll take that up as a feature consideration for a future version.

Chet



-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]