home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!nntp1.radiomail.net!fernwood!autodesk!dansmith
- From: dansmith@Autodesk.COM (Daniel Smith)
- Newsgroups: comp.unix.shell
- Subject: Re: echo question
- Message-ID: <17935@autodesk.COM>
- Date: 16 Nov 92 21:55:56 GMT
- References: <17898@autodesk.COM> <19921114163004SEB1525@MVS.draper.com>
- Organization: Autodesk Inc., Sausalito CA, USA
- Lines: 28
-
- In <19921114163004SEB1525@MVS.draper.com> SEB1525@MVS.draper.com (Steve Bacher) writes:
-
- > In article <17898@autodesk.COM>,
- > dansmith@Autodesk.COM (Daniel Smith) writes:
-
- > > Forget the escape sequences. They're not as portable as
- > >combining echo with tr:
- > >
- > > echo 'first:this=that=other+second:this=that=other+' | tr '=+' '\011\012'
-
- > Hardcoded octal ascii is "portable"???
- > Escaping syntax in tr is "portable"???
-
-
- Yeah ...
-
- OK, name an english-language version of Unix this'll bomb on.
- When I say "not as portable", I mean that my approach doesn't suffer
- portability problems as much as \t \r etc in Sys V echo.
-
- I'd probably write it in perl though, but that wasn't the question :-)
-
- Daniel
- --
- Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
- Disclaimer: written by a highly caffeinated mammal
- dansmith@autodesk.com dansmith@well.sf.ca.us
-
-