summaryrefslogtreecommitdiff
path: root/usr.bin/getopt
AgeCommit message (Collapse)Author
2014-01-19A SYNOPSIS should not attempt to provide examples, so trim it;Ingo Schwarze
a better example already exists in the EXAMPLES section. The DESCRIPTION should not provide examples either, in particular not bad ones, so move that to CAVEATS. Also fix various markup. OK jmc.
2012-11-14fix a bug, hidden by the break statement in the special option case,Igor Sobrado
in the example code. millert@ suggested using -ne instead of -gt since $# can't be negative. ok millert@
2010-10-28knock out some "-*- nroff -*-" lines;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-04-12document that no leading whitespace is permitted between the option andOkan Demirmen
argument if the argument is deemed to be optional ('::'). feedback and ok jmc@ and millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-01-26after some discussion with otto, remove "errcode=$?;" from getopt'sJason McIntyre
synopsis: it is really not central to its usage; ok otto millert
2007-01-24The example is not correct and uses non-idiomatic scripting. So fix it.Otto Moerbeek
ok espie@
2006-06-07this file is public domain;Jason McIntyre
problem reported by will h. backman; sorted with the author's permission - thanks henry spencer.
2006-01-14document why we avoid: set -- `getopt optstring $*`Jason McIntyre
2006-01-14update the example and synopsis so that we are checking theJason McIntyre
exit value of getopt itself, not `set'; example merged from current freebsd page; problem reported by nordin; ok millert
2006-01-13- kill some of the mad escaping;Jason McIntyre
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-02-17copyrights added;Jason McIntyre
des_crypt(3): Eric Young aac(4): Michael Smith, BSDi, Niklas Hallqvist; ok niklas@ bktr(4): Amancio Hasty, Roger Hardiman getopt(1): Henry Spencer (public domain) pcnfds(8): Sun
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2000-04-15Mostly punctuation fixes.Aaron Campbell
2000-03-07Various cleanup.Aaron Campbell
2000-03-04In Unix land we prefer "whitespace" to "white space" or "white-space". AtAaron Campbell
least, this is the impression I get from looking at a lot of Perl docs.
1999-07-04correct use of .Nm; some other formatting nitsAaron Campbell
1998-09-26usr.bin/ man page fixes, f-m.Aaron Campbell
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt