ksh command substitution not working as intended when using pipes
Issue
-
Command substitution using
kshdoes not work as expected when usingksh -
Below is an example of the incorrect output:
# rpm -qf /bin/ksh93
ksh-20100621-15.el5
# echo foo | echo $(hostname)
#
Environment
- Red Hat Enterprise Linux 5, minor versions <=5.10
- Red Hat Enterprise Linux 6
ksh
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.