When displaying a string with `\0xx`, the part of the string is converted to a different character.

Solution Verified - Updated -

Issue

  • When displaying a string with \0xx, the part of the string is converted to a different character.

    $ cat dir.lst
    \\SYS\041\P0050201
    $ set TMPDIR=`cat dir.lst`
    $ echo $TMPDIR
    \SYS!\P0050201
    

Environment

  • Red Hat Enterprise Linux 5, 6, 7 and 8
  • tcsh

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