Re: Can't unset function with unusual names

2007-10-17 Thread AnMaster
-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

Re: Can't unset function with unusual names

2007-10-17 Thread Chet Ramey
> 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

Re: Can't unset function with unusual names

2007-10-16 Thread AnMaster
-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

Re: Can't unset function with unusual names

2007-10-16 Thread Jan Schampera
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

Re: Can't unset function with unusual names

2007-10-16 Thread Andreas Schwab
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