home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4793 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
  3. From: SEB1525@MVS.draper.com (Steve Bacher)
  4. Subject: Re: echo question
  5. Message-ID: <19921119191424SEB1525@MVS.draper.com>
  6. Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
  7. Nntp-Posting-Host: mvs.draper.com
  8. Organization: Draper Laboratory
  9. Date: Fri, 20 Nov 1992 00:14:00 GMT
  10. Lines: 25
  11.  
  12. Sergio gave me permission to repost his reply.  This is somewhat more
  13. useful than Daniel Smith's reply. :-) = seb
  14.  
  15. ------------------------------------------------------------------------
  16.  
  17. Date: Thu, 19 Nov 1992 18:59 EST
  18. From: Sergio Gelato <SDRY@vax5.cit.cornell.edu>
  19.  
  20. >>> >        echo 'first:this=that=other+second:this=that=other+' | tr '=+'
  21.  '\011\012'
  22. >>
  23. >>> Hardcoded octal ascii is "portable"???
  24. >>> Escaping syntax in tr is "portable"???
  25. >>
  26. >>        OK, name an english-language version of Unix this'll bomb on.
  27. >
  28. >I haven't seen AIX/370, but I'm sure it'll bomb, being EBCDIC.
  29.  
  30. I just tried (AIX/370 1.2.1 (1300)), and it worked very nicely.
  31. (OK, I didn't set the LANG environment variable to anything funny like
  32. Kanji.) AIX/370 isn't EBCDIC, by the way. The kernel may output some
  33. EBCDIC messages to the underlying VM system, but the character code
  34. visible to users is ASCII (or some extension thereof).
  35. --
  36. Sergio Gelato <sdry@eagle.tc.cornell.edu>>
  37.