[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unset strangely rejects certain function names eg fu~
From: |
Andreas Schwab |
Subject: |
Re: unset strangely rejects certain function names eg fu~ |
Date: |
Wed, 12 Dec 2007 20:56:52 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
root@scalliondata.com writes:
> Repeat-By:
> $ function fun(){ echo running fun;}
> $ function fu~(){ echo running fu~;}
> $ fun
> running fun
> $ fu~
> running fu~
> $ unset fun
> $ unset fu~
> bash: unset: `fu~': not a valid identifier
Use unset -f. (And don't work as root.)
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."