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?