-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Chet Ramey wrote:
>> Even so, if neither -f nor -v are given, you should apply both naming rules.
>
> If neither option is supplied, the name is required to refer to a variable,
> and the variable naming rules must be followed.
>
> The real problem
> Even so, if neither -f nor -v are given, you should apply both naming rules.
If neither option is supplied, the name is required to refer to a variable,
and the variable naming rules must be followed.
The real problem was ever allowing functions with invalid names to be created.
Chet
--
``Th
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Even so, if neither -f nor -v are given, you should apply both naming rules.
/AnMaster
Andreas Schwab wrote:
> AnMaster <[EMAIL PROTECTED]> writes:
>
>> Repeat-By:
>> $ .foo-bar() { echo test; }
>> $ .foo-bar
>> test
>> $ unset
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
AnMaster <[EMAIL PROTECTED]> writes:
> Repeat-By:
> $ .foo-bar() { echo test; }
> $ .foo-bar
> test
> $ unset .foo-bar
> bash: unset: `.foo-bar': not a valid identifier
Use unset -f.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH