Are commands executed with different shell options when they are executed after being edited in the visual editor from history?

Solution Verified - Updated -

Issue

When using bash, different output is observed on the screen when executing the exact same command two different ways. This behavior was only noticed when using command subsitution: $( command )

When executing commands directly on the command line, the output includes only the results of the command. However, if the command is edited and executed from history using the visual editor, the output to the screen include the text of the command as well as the results of the command. This behavior is similar to how the shell prints output when "set -v" is enabled in the shell.

Environment

Red Hat Enterprise Linux (RHEL) 6.5

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