bug-bash
[Top][All Lists]
Advanced

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

Re: Can't unset function with unusual names


From: Jan Schampera
Subject: Re: Can't unset function with unusual names
Date: Wed, 17 Oct 2007 07:12:22 +0200
User-agent: IceDove 1.5.0.12 (X11/20070607)

Andreas Schwab wrote:

>>      $ unset .foo-bar
>>      bash: unset: `.foo-bar': not a valid identifier
> 
> Use unset -f.

IMHO there is a bug. The docs say that ''unset'' without a specific
switch affects variables AND functions, hence it should allow the names
for both (or it should ONLY affect variables and expect an explicit -f
for functions).

The latter behaviour would be POSIX-compilant, too ("unspecified" opens
doors - heh).

It's at least a usability bug.

J.




reply via email to

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