If you run set var = `catsjis.txt` on tcsh, Missing}. will be printed.

Asked 2 years ago, Updated 2 years ago, 41 views

Running set var=`catsjis.txt` on tcsh will print Missing}.

tcsh-6.14 was successful, but tcsh-6.18 received the above error

·Procedure

Create "test.csh" and include:

$#!/bin/tcsh-f
$ set var = `cat SJIS.txt`

Run the following command

$./test.csh

linux shell

2022-09-29 22:31

1 Answers

set var= can be solved by double-quote the left side.

example
    set var = "`cat SJIS.txt`"

# I think it depends on the content of SJIS.txt.Specifically, the byte data contains "}"
(or something that is not Shift_JIS)


2022-09-29 22:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.