2

I've learned recently from DigitalRoss's answer that certain teletypes such as ASR-33 lacked certain keys; for instance |. For that purpose in C there exist trigraph operators that can be substituted for | and some others.

Now, this begs the question what was done in Bourne shell back in the day to solve this problem?

ctrl-alt-delor
  • 27,473
  • 9
  • 58
  • 102
Sergiy Kolodyazhnyy
  • 16,187
  • 11
  • 53
  • 104
  • 4
    Possible duplicate of [Use of ^ as a shell metacharacter](https://unix.stackexchange.com/questions/104318/use-of-as-a-shell-metacharacter) – roaima Dec 29 '18 at 09:39
  • 1
    Trigraphs in C were not introduced because of the Teletype Model 33, they came much later. The reason for trigraphs were the ISO-646 character set, which allowed certain characters like `{|}` to be replaced by national characters like `äöå`. – Johan Myréen Dec 29 '18 at 12:22
  • The proposed duplicate does not answer the question of how one entered these characters (more than just `|`) when that sort of teletype was a Unix terminal. Unfortunately this question is written as if the shell were all that one interacted with on a terminal. – JdeBP Dec 29 '18 at 17:35

0 Answers0