./misc/getopt, Program to help shell scripts parse command-line parameters

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.1.6, Package name: getopt-1.1.6, Maintainer: pkgsrc-users

Getopt(1) is a program to help shell scripts parse command-line
parameters. It is for example included in the util-linux distribution
(versions up to 2.7.1) for Linux. But, there were some problems
with that getopt(1) implementation, as listed in the 'BUGS' section
of its man-page:
* Whatever getopt(3) has.
* Arguments containing white space or imbedded shell metacharacters
generally will not survive intact; this looks easy to fix but
isn't.
* The error message for an invalid option is identified as
coming from getopt rather than from the shell procedure
containing the invocation of getopt; this again is hard to
fix.
* The precise best way to use the set command to set the
arguments without disrupting the value(s) of shell options
varies from one shell version to another.
Additionally, the example in the manual-page does not run correctly
(at least not with any bash shell I have tried).

This implementation of getopt(1) solves some of these problems,
while still staying (for all practical purposes) completely compatible
with other getopt(1) implementations. It has replaced the old
util-linux version, but it should be useful for other Unixes too.


Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 98725b4878d19ab6b126cd16263fed1f6090f6a7
RMD160: 6ef3666d386450fa5ce249e7748805df5c8482c9
Filesize: 57.545 KB

Version history: (Expand)


CVS history: (Expand)


   2015-11-04 00:49:56 by Alistair G. Crooks | Files touched by this commit (330)
Log message:
Add SHA512 digests for distfiles for misc category

Problems found locating distfiles:
	Package colorls: missing distfile ls.tar.gz
	Package molden: missing distfile molden-4.6/molden4.6.tar.gz
	Package softmaker-office-demo: missing distfile ofl06trial.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2014-12-01 11:57:02 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Update to 1.1.6:

20141124: Bumped up version number to 1.1.6
20141124: Properly quote backslashes for tcsh
20141124: Detect ambiguous long options properly
          Thanks to Klaus Wulff <dinw.klswlff@dfgh.net>
20141123: Create test harnass and tests
20141122: Update translations (sync with util-linux (git 20141120))
20141120: Update manual page (sync with util-linux (git 20141120))
20141120: Minor code changes (sync with util-linux (git 20141120))
   2014-10-09 16:07:17 by Thomas Klausner | Files touched by this commit (1163)
Log message:
Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.
   2013-04-13 00:26:44 by Matthias Drochner | Files touched by this commit (4)
Log message:
try to clean up a bit
there is no point in using msgfmt if the result isn't installed
   2013-04-12 22:00:10 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
Added msgfmt to USE_TOOLS; added a patch to avoid getopt_long_only() on NetBSD
   2013-04-12 21:59:38 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
Added msgfmt to USE_TOOLS; added a patch to avoid getopt_long_only() on NetBSD
   2013-04-11 13:45:44 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
Changes 1.1.5:
Sync with util-linux 2.21. More translations. Fixed some build problems. No \ 
known bugs.
   2012-10-08 11:57:42 by Aleksej Saushev | Files touched by this commit (239)
Log message:
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.