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

  1. Xref: sparky comp.unix.wizards:4768 comp.unix.shell:4763 comp.unix.misc:4233
  2. Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
  3. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter
  4. From: peter@ferranti.com (peter da silva)
  5. Subject: Re: The Problem with UNIX
  6. Message-ID: <id.BY1V.3BA@ferranti.com>
  7. Organization: Xenix Support, FICC
  8. References: <1992Nov11.194557.16258@yarc.uucp> <EEIDE.92Nov12120339@asylum.cs.utah.edu> <1992Nov12.193707.27532@chpc.utexas.edu>
  9. Date: Wed, 18 Nov 1992 00:14:00 GMT
  10. Lines: 32
  11.  
  12. In article <1992Nov12.193707.27532@chpc.utexas.edu> michael@chpc.utexas.edu (Michael Lemke) writes:
  13. > This would all be
  14. > solved if there were *one* system function that is used by all programs
  15. > instead of having every program duplicate more or less the same
  16. > functionality with different success.
  17.  
  18. See Eric Allman's "Parseargs" utility. It's great.
  19.  
  20. I have it set up so the same program on UNIX accepts:
  21.  
  22.     foo -abc -d bar
  23. or
  24.     foo +apple +banana +carrot +diet bar
  25.  
  26. And on AmigaOS (with a different convention):
  27.  
  28.     foo apple banana carrot diet=bar
  29. or
  30.     foo a b c d=bar
  31.  
  32. And it's also been extended to VMS and DOS:
  33.  
  34.     foo/apple/banana/carrot/diet=bar
  35. or
  36.     foo/apple/banana/carrot bar/diet
  37. or
  38.     foo/a/b/c bar/d
  39. -- 
  40. Peter da Silva / 77487-5012 USA / +1 713 274 5180
  41. true(<<VV$@\\$'&O 9$O%'$LT$&$"V6"$&$<4$?'&$ #I&&?$=$<<@)24 24 scale 3 21 moveto
  42. {dup 36 eq{pop not}{dup 7 and 4 sub exch 56 and 8 div 4 sub 2 index{rlineto}{
  43. rmoveto}ifelse}ifelse}forall stroke pop showpage % Har du kramat din varg idag?
  44.