home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3247 < prev    next >
Encoding:
Text File  |  1992-07-31  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!tekbspa!tekbspa!esh
  3. From: esh@lithium.tekbspa.com (Edward S. Hirgelt)
  4. Subject: Re: Where does the sugar go? (was Re: Sort problem )
  5. In-Reply-To: chip@eniac.seas.upenn.edu's message of 31 Jul 92 03:30:28 GMT
  6. Message-ID: <ESH.92Jul31101723@lithium.tekbspa.com>
  7. Sender: news@tss.com (USENET Network News)
  8. Organization: Direct Interfaces Corporation @ Teknekron
  9. References: <33pmg <1992Jul31.000822.13317@convex.com> <84902@netnews.upenn.edu>
  10. Date: Fri, 31 Jul 1992 18:17:23 GMT
  11. Lines: 26
  12.  
  13.  
  14. On 31 Jul 92 03:30:28 GMT,
  15. chip@eniac.seas.upenn.edu (Charles H. Buchholtz) said:
  16. Charles> Sender: news@netnews.upenn.edu
  17. Charles> Nntp-Posting-Host: eniac.seas.upenn.edu
  18.  
  19. Charles> So, folks, what's the verdict?  Output goes to stdout, preferably
  20. Charles> arranged in lines and fields for easy filtering.  Error messages and
  21. Charles> diagnostics (abnormal stuff) goes to stderr.  Where should the sugar
  22. Charles> go?  stdout?  /dev/tty?  /dev/null?  >&3?
  23.  
  24. Actually, I think it should go to stdout as well. To be filterable, the
  25. headers and other `sugar' ought to disappear. The right answer (for the
  26. future) is that the command ought to have a flag to disable headers.
  27.  
  28. You don't really want to route that to a different file descriptor
  29. because the command would then have to worry about synchronizing the two
  30. descriptors to keep the non-filtered output looking good. ps could use a
  31. -noheader flag or something that tells it to forget the header this
  32. time, I want to play with the output.
  33.  
  34. Ed
  35. --
  36. Ed Hirgelt            esh@tss.com
  37. Direct Interfaces Corporation
  38. San Jose, Ca.
  39.