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