home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4737 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.3 KB

  1. Path: sparky!uunet!nntp1.radiomail.net!fernwood!autodesk!dansmith
  2. From: dansmith@Autodesk.COM (Daniel Smith)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: echo question
  5. Message-ID: <17935@autodesk.COM>
  6. Date: 16 Nov 92 21:55:56 GMT
  7. References: <17898@autodesk.COM> <19921114163004SEB1525@MVS.draper.com>
  8. Organization: Autodesk Inc., Sausalito CA, USA
  9. Lines: 28
  10.  
  11. In <19921114163004SEB1525@MVS.draper.com> SEB1525@MVS.draper.com (Steve Bacher) writes:
  12.  
  13. > In article <17898@autodesk.COM>,
  14. > dansmith@Autodesk.COM (Daniel Smith) writes:
  15.  
  16. > >        Forget the escape sequences.  They're not as portable as
  17. > >combining echo with tr:
  18. > >
  19. > >        echo 'first:this=that=other+second:this=that=other+' | tr '=+' '\011\012'
  20.  
  21. > Hardcoded octal ascii is "portable"???
  22. > Escaping syntax in tr is "portable"???
  23.  
  24.  
  25.     Yeah ...
  26.  
  27.     OK, name an english-language version of Unix this'll bomb on.
  28. When I say "not as portable", I mean that my approach doesn't suffer
  29. portability problems as much as \t \r etc in Sys V echo.
  30.  
  31.     I'd probably write it in perl though, but that wasn't the question :-)
  32.  
  33.                 Daniel
  34. -- 
  35.      Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
  36.           Disclaimer: written by a highly caffeinated mammal
  37.         dansmith@autodesk.com            dansmith@well.sf.ca.us
  38.  
  39.