ZSH does not handle multiple wilcards (*) correctly

Solution In Progress - Updated -

Issue

Multiple wildcards * are not handled correctly by zsh. Command below is syntactically equivalent to time ksh -c "ls /tmp/*a*" although it takes a very long time to complete. bash does not show the same condition

$ time ksh -c "ls /tmp/***************************************************************a*******************************"
^C
real    44m9.896s
user    44m8.110s
sys 0m0.024s

$ time bash -c "ls /tmp/***************************************************************a*******************************"

real    0m0.005s
user    0m0.001s
sys 0m0.003s

Environment

  • Red Hat Enterprise Linux 5,6,7
  • zsh

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.