Re: Possible bug in 'unset' builtin

2015-05-11 Thread Chet Ramey
On 5/8/15 12:42 PM, Eduardo A. Bustamante López wrote: >>> [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 betwe

Re: Possible bug in 'unset' builtin

2015-05-08 Thread Eduardo A . Bustamante López
> > [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 apologize for my comment :-) I

Re: Possible bug in 'unset' builtin

2015-05-05 Thread Chet Ramey
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 u

Possible bug in 'unset' builtin

2015-05-01 Thread Dreamcat4
Hello. If you unset a function, then a variable argument (argv) specified after that function will not be unset. To reproduce: [19:20] < koala_man> # var1=foo; funcA() { echo foo; }; var2=bar; unset var1 funcA var2; declare -p var1 var2; [19:24] < dreamcat4^> echo "$BASH_VERSION" [19:24] < drea