Sometimes zsh interprets variable assignments as other commands and tries to execute them

Solution Verified - Updated -

Issue

Running a script with zsh containing variable assignments can result in 'VARIABLE=VALUE' being considered as a single command. As a result, the script would terminate with a 'command not found' error message.

Environment

  • Red Hat Enterprise Linux 5
  • zsh-4.2.6-5.el5

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