Path: utzoo!mnetor!uunet!dalcs!iisat!kevin From: kevin@iisat.UUCP (Kevin Davies) Newsgroups: comp.unix.xenix Subject: Re: IBM Extended Characters Message-ID: <11@iisat.UUCP> Date: 9 Apr 88 21:57:13 GMT References: <651@jclyde.UUCP> <256@conexch.UUCP> <382@nancy.UUCP> <10330@steinmetz.ge.com> Organization: International Information Service, Dart., NS Lines: 23 Summary: graphics characters and different shells In article <10330@steinmetz.ge.com>, davidsen@steinmetz.ge.com (William E. Davidsen Jr) writes: > In article <382@nancy.UUCP> las@msudoc.UUCP (=P^ZAZPPPYPYXU zQYhBYPYo^O) writes: > >Well on my machine running SCO XENIX/386 2.2.1 echo "\0376" > >yields \0376 and not a little square. > > agrees that the result is one byte. Perhaps you're using csh or something? I just tried this under the C shell (csh) , and sure enough, I got "\0376", BUT , under Bourne shell (sh), I get the little square (be sure to have stty cs8 to allow the high bit). Answer to this strange situation ? I appears that 'echo' is an internal command for csh, and does not attempt to interpret this as one byte, but just a string of characters. The answer for csh users is to explicitly call /bin/echo which will do this conversion properly for you. I guess this means that echo is not necessarily echo. Cheers... -- Kevin Davies International Information Service (IIS) UUCP: {uunet,utai,watmath}!dalcs!iisat!kevin ----------------------------------------