| Summary: | Embedded Commnad "unset" fails to unset function which name comprises '-' | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Dimitar Yordanov <dyordano> |
| Component: | bash | Assignee: | Roman Rakus <rrakus> |
| Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1 | CC: | prc, tsmetana |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-16 17:24:21 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 |
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: