[Tcsh] history is "different"

Jamie Landeg-Jones jamie at catflap.org
Tue Jul 21 12:36:03 UTC 2020


> I didn't know how to come up with a better subject, but I noticed that
> if the terminal is incapable of showing a character, up-arrow will show
> something different than "history"
>
> $ whatever \U+1F917
> ...
> $ history 4
> :
> :
>    123 07-12 18:07  whatever
>    124 07-12 18:07  history 4
> $ <▲>
> $ whatever \U+1F917
>
> Worse:
>
> $ history | grep whatever | cat -ve
>
>    123 07-12 18:07  whatever M-pM-^_M-$M-^W$

That looks like a locale character mismatch to me. Are you using utf-8, but
with your environment set to "C"?

Try :

setenv LANG C.UTF-8

, or type 'locale -a" to find a more appropriate locale, if you want to set more
than just the character set.

e.g. I use:

# echo $LANG
en_GB.UTF-8

Cheers, Jamie


More information about the Tcsh mailing list