In zsh shell, a commands hash table is created even though nohashcmds option is enabled.

Solution Unverified - Updated -

Issue

  • Option nohashcmds is enabled and it should prevent a command hash table from being created. Custom programs are stored in different locations listed in $PATH and the same program can be stored in two different locations. A hash table entry pointing to the wrong location is sometimes created in the command hash table. How to make sure that no hash table will be created at all?

Environment

  • Red Hat Enterprise Linux (RHEL) 5
  • Red Hat Enterprise Linux (RHEL) 6
  • Red Hat Enterprise Linux (RHEL) 7
  • zsh shell

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.