IBM Extended Characters

Kevin Davies kevin at iisat.UUCP
Sun Apr 10 07:57:13 AEST 1988


In article <10330 at steinmetz.ge.com>, davidsen at steinmetz.ge.com (William E. Davidsen Jr) writes:
> In article <382 at nancy.UUCP> las at 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
----------------------------------------



More information about the Comp.unix.xenix mailing list