ksh does not report an error with unset position argument when -u option has been set

Solution In Progress - Updated -

Issue

When -u option has been set in ksh, the shell does not report error for using unset position argument like $1 although it should:

-u
    When the shell tries to expand an unset parameter other than the '@' and '*' special parameters, it shall write a message to standard error and the expansion shall fail with the consequences specified in Consequences of Shell Errors.

Environment

RHEL 7
ksh-20120801-26.el7

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