| CARVIEW |
Select Language
HTTP/2 200
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
set-cookie: PHPSESSID=h64e05j0ihvarhepjvofmlofr3; path=/
content-type: text/html; charset=UTF-8
date: Sat, 27 Dec 2025 22:31:36 GMT
server: Apache
pkgsrc.se | The NetBSD package collection
archivers
audio
benchmarks
biology
cad
chat
comms
converters
cross
crosspkgtools
databases
devel
doc
editors
emulators
filesystems
finance
fonts
games
geography
graphics
ham
inputmethod
lang
mail
math
mbone
meta-pkgs
misc
getopt
multimedia
net
news
parallel
pkgtools
print
regress
security
shells
sysutils
textproc
time
wip
wm
www
x11
* = Virtual Category
Path to this page:
./misc/getopt, Program to help shell scripts parse command-line parameters
[
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]
Navigation:
-
Browse pkgsrc
(this page)
archivers
audio
benchmarks
biology
cad
chat
comms
converters
cross
crosspkgtools
databases
devel
doc
editors
emulators
filesystems
finance
fonts
games
geography
graphics
ham
inputmethod
lang
math
mbone
meta-pkgs
misc
getoptmultimedia
net
news
parallel
pkgtools
regress
security
shells
sysutils
textproc
time
wip
wm
www
x11
* = Virtual Category
Path to this page:
./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:
Filesize: 57.545 KBVersion history: (Expand)
- (2025-07-15) Package has been reborn
- (2025-07-15) Package deleted from pkgsrc
- (2017-11-23) Package has been reborn
- (2014-12-01) Updated to version: getopt-1.1.6
- (2013-04-11) Updated to version: getopt-1.1.5
- (2012-06-11) Package has been reborn
CVS history: (Expand)
| 2025-05-01 18:58:48 by Tobias Nygren | Files touched by this commit (2) |
Log message: getopt: Include <string.h> for strlen(3) |
| 2021-10-26 12:59:39 by Nia Alarie | Files touched by this commit (378) |
Log message: misc: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes The following distfiles could not be fetched (possibly fetched conditionally?): ./misc/libreoffice/distinfo libreoffice/harfbuzz-2.6.4.tar.xz |
| 2021-10-07 16:35:55 by Nia Alarie | Files touched by this commit (378) |
Log message: misc: Remove SHA1 hashes for distfiles |
| 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) |
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 |
