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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content