ksh 93u+ here-document error

Solution Verified - Updated -

Issue

  • The following command works fine with ksh version 93t+ (on RHEL 6.4) but causes a "here-document not contained within command substitution" error on 93u+ (RHEL 6.5)
cat <<EOF | tail -$((5-4))
alpha
bravo
charlie
EOF

Environment

  • Red Hat Enterprise Linux 6.4
  • ksh-20120801-10.el6_5.4

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