home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:4768 comp.unix.shell:4763 comp.unix.misc:4233
- Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
- 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
- From: peter@ferranti.com (peter da silva)
- Subject: Re: The Problem with UNIX
- Message-ID: <id.BY1V.3BA@ferranti.com>
- Organization: Xenix Support, FICC
- References: <1992Nov11.194557.16258@yarc.uucp> <EEIDE.92Nov12120339@asylum.cs.utah.edu> <1992Nov12.193707.27532@chpc.utexas.edu>
- Date: Wed, 18 Nov 1992 00:14:00 GMT
- Lines: 32
-
- In article <1992Nov12.193707.27532@chpc.utexas.edu> michael@chpc.utexas.edu (Michael Lemke) writes:
- > This would all be
- > solved if there were *one* system function that is used by all programs
- > instead of having every program duplicate more or less the same
- > functionality with different success.
-
- See Eric Allman's "Parseargs" utility. It's great.
-
- I have it set up so the same program on UNIX accepts:
-
- foo -abc -d bar
- or
- foo +apple +banana +carrot +diet bar
-
- And on AmigaOS (with a different convention):
-
- foo apple banana carrot diet=bar
- or
- foo a b c d=bar
-
- And it's also been extended to VMS and DOS:
-
- foo/apple/banana/carrot/diet=bar
- or
- foo/apple/banana/carrot bar/diet
- or
- foo/a/b/c bar/d
- --
- Peter da Silva / 77487-5012 USA / +1 713 274 5180
- true(<<VV$@\\$'&O 9$O%'$LT$&$"V6"$&$<4$?'&$ #I&&?$=$<<@)24 24 scale 3 21 moveto
- {dup 36 eq{pop not}{dup 7 and 4 sub exch 56 and 8 div 4 sub 2 index{rlineto}{
- rmoveto}ifelse}ifelse}forall stroke pop showpage % Har du kramat din varg idag?
-