tcsh: command with backslash prefix in backquotes returns different result comapred to non-backslash command.

Solution Verified - Updated -

Issue

  • tcsh: command with backslash prefix in backquotes returns different result comapred to non-backslash command.

Example

- Without backslash
# set myver=`echo 1 2 3`
# echo ${myver[1]}
1

- With backslash
# set myver=`\echo 1 2 3`
# echo ${myver[1]}
1 2 3

Environment

  • Red Hat Enterprise Linux 6
  • tcsh-6.17-35.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In