Hide Forgot
Description of problem: Embedded Commnad "unset" fails to unset function which name comprises '-' Version-Release number of selected component (if applicable): bash-4.1.2-8.el6.x86_64 How reproducible: Always Steps to Reproduce: 1.function a(){ echo a } 2.unset a 3.function a-a(){ echo "a-a" } 4.#unset a-a Actual results: -bash: unset: `a-a': not a valid identifier Expected results: Success. Additional info:
You can use `unset -f'.
You can see discussion upstream http://www.mail-archive.com/bug-bash@gnu.org/msg03329.html Mainly the answer from upstream maintainer http://www.mail-archive.com/bug-bash@gnu.org/msg03334.html Closing as not a bug