Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/getopt Add a note telling people to use the shell ge...
details: https://anonhg.NetBSD.org/src/rev/e67f761e0df1
branches: trunk
changeset: 749397:e67f761e0df1
user: dsl <dsl%NetBSD.org@localhost>
date: Sat Nov 28 20:36:45 2009 +0000
description:
Add a note telling people to use the shell getopts builtin.
diffstat:
usr.bin/getopt/getopt.1 | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r dbb682d9d5dd -r e67f761e0df1 usr.bin/getopt/getopt.1
--- a/usr.bin/getopt/getopt.1 Sat Nov 28 20:30:01 2009 +0000
+++ b/usr.bin/getopt/getopt.1 Sat Nov 28 20:36:45 2009 +0000
@@ -1,5 +1,5 @@
-.\" $NetBSD: getopt.1,v 1.17 2009/03/11 13:53:30 joerg Exp $
-.Dd November 9, 2000
+.\" $NetBSD: getopt.1,v 1.18 2009/11/28 20:36:45 dsl Exp $
+.Dd November 28, 2009
.Dt GETOPT 1
.Os
.Sh NAME
@@ -34,6 +34,11 @@
.Dq \-
and in its own shell argument;
each option argument is also in its own shell argument.
+.Pp
+.Nm
+should not be used in new scripts, use the shell builtin
+.Nm getopts
+instead.
.Sh EXAMPLES
The following code fragment shows how one might process the arguments
for a command that can take the options
Home |
Main Index |
Thread Index |
Old Index