[Top][All Lists]

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

Re: Possible bug in 'unset' builtin

From: Chet Ramey
Subject: Re: Possible bug in 'unset' builtin
Date: Tue, 05 May 2015 13:41:05 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 5/1/15 2:26 PM, Dreamcat4 wrote:
> Hello.
> If you unset a function, then a variable argument (argv) specified after
> that function will not be unset.

Thanks for the report.  Yes, once you unset a function, it's as if you
supplied the `-f' option.

This came in as the result of a fix for the unset-lets-you-unset-readonly-
functions problem in bash-4.2.

> [19:24] < dualbus> for every fix that Chet does, he introduces like 2 bugs.
> Nice way of keeping himself busy

That points to the importance of having a good, comprehensive test suite.
It's difficult to test the interaction between features otherwise.

I attached a patch for people to test.
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

Attachment: unset-func.patch
Description: Text Data

reply via email to

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