home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!apiary!milanj
- From: milanj@sematech.org (Jon Milan)
- Subject: Re: Where does the sugar go? (was Re: Sort problem )
- Message-ID: <1992Jul31.173353.8155@apiary.uucp>
- Sender: news@apiary.uucp
- Nntp-Posting-Host: chile
- Organization: SEMATECH Manufacturing Systems Development
- References: <33pmg <1992Jul31.000822.13317@convex.com> <84902@netnews.upenn.edu>
- Date: Fri, 31 Jul 1992 17:33:53 GMT
- Lines: 36
-
- In article <84902@netnews.upenn.edu> chip@eniac.seas.upenn.edu (Charles H. Buchholtz) writes:
- >tchrist@convex.COM (Tom Christiansen) writes:
- >>
- >>Expected output should go out to stdout. Exceptional output related
- >>to diagnostics or other error messages should go out stderr.
- >
- >I agree, but I often wonder what to do with the output "sugar", such
- >as prompts or headers, which are not well suited for filtering. It's
- >nice when someone is looking at the output, but takes extra effort to
- >remove when piped into a filter, eg
- >
- > finger | tail +2l | [...]
- > ps | (read header; echo "$header"; [...])
- >
- >So, folks, what's the verdict? Output goes to stdout, preferably
- >arranged in lines and fields for easy filtering. Error messages and
- >diagnostics (abnormal stuff) goes to stderr. Where should the sugar
- >go? stdout? /dev/tty? /dev/null? >&3?
-
-
- It can go to stdout as long as there's a command line option to shut it off
- for filtering. Or preferably, an option to turn the "sugar" ON if someone
- wants it.
-
- What eats me is when there's NO such option (so I have to hack around the noise),
- then a new version of software comes along that breaks code cause the _noise_ changed!
- I, for one, don't care to rewrite code for _that_ reason.
-
- Unfortunately, UNIX is too flexible! It'll let any programmer do just about
- whatever they please! And it also lets me rewrite stuff if I don't like it! :-)
-
- --
- Jon Milan jon_milan@sematech.org |
- SEMATECH Manufacturing Systems Development |
- "is was as was was when was was as is" (pmk) |
- = = = = = = = = = = = = = = = = = = = = = = = =
-