Bug 53174 - [NEW PORT] misc/getopt: A getopt(1) replacement that supports GNU-style long options
Summary: [NEW PORT] misc/getopt: A getopt(1) replacement that supports GNU-style long ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-11 01:10 UTC by Sergei Kolobov
Modified: 2003-06-14 01:07 UTC (History)
0 users

See Also:


Attachments
getopt.shar (6.45 KB, text/plain)
2003-06-11 01:10 UTC, Sergei Kolobov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Kolobov 2003-06-11 01:10:09 UTC
Rewrite of getopt(1) with the following features:

* It can do anything that the GNU getopt(3) routines can do.
* It can cope with spaces and shell metacharacters within arguments.
* It can parse long parameters.
* It can shuffle parameters, so you can mix options and other parameters
  on the command-line.
* It can be easily identified as an enhanced getopt(1) from within shell
  scripts.
* It can report parse errors as coming from the shell script.
* It compiles cleanly with both libc-5 and glibc-2.

Author:	Frodo Looijaard <frodol@dds.nl>
WWW:	http://huizen.dds.nl/~frodol/getopt.html

This port is required for upcoming textproc/xmlto port (to be submitted separately)
which is, in turn, required for an update to devel/makeplus port.

Tested (compiles and run) on 4.8-STABLE and 5.1-CURRENT (i386).
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2003-06-14 00:50:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->osa

I'll handle this.
Comment 2 Sergey A. Osokin freebsd_committer freebsd_triage 2003-06-14 01:06:08 UTC
State Changed
From-To: open->closed

Committed, thanks!