NetBSD/bin
christos 0bc88b2434 getopts fixes:
1. OPTIND value was not computed correctly when the argument was part of the
   option string (i.e. for "l:" "-l 1" was working "-l1" was not). (PR/2505).
2. OPTARG was not being unset in case of errors [in the non POSIX error case].
3. optvar could be set to random values.
4. Option string starting with a : was not treated specially as POSIX
   specifies (if the option string starts with a :, then there is no
   error printed when there are missing option arguments or illegal options,
   and OPTARG and optvar are being set specially).
5. Implemented getopts "opts" optvar [arg]. The optional argument case
   was not implemented.

To do:
- what does Posix say about resetting the getopts state? Bash does it
  by setting OPTIND=0; is that correct? Should we be doing the same thing?
- should we be using getopt(3) for everything internal to the shell? Is that
  feasible because we might need to handle multiple invocations at once.
1996-06-04 21:00:09 +00:00
..
cat kill an extr space in a (literally-printed) example 1995-09-27 05:38:55 +00:00
chio Utility to control media changers from the command line; corresponds 1996-04-03 00:34:38 +00:00
chmod convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
cp Sync with 4.4lite2 1995-09-07 06:12:53 +00:00
csh fix bug where 1996-02-09 02:28:29 +00:00
date a a => a (close pr 2204). 1996-03-12 04:32:37 +00:00
dd add const qualifier to args and clist tables 1996-03-01 01:18:58 +00:00
df ENVIRONMENTAL -> ENVIRONMENT 1995-12-05 02:41:35 +00:00
domainname Use "utility" instead of "command". Modern definitions of these terms 1995-07-25 19:36:36 +00:00
echo convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
ed clean up RCS Ids slightly, etc. 1995-04-23 10:07:18 +00:00
expr don't spew an error message if setlocale(LC_ALL, ""); fails. This is for 1996-06-04 20:41:15 +00:00
hostname Sync with 4.4lite2 1995-09-07 06:28:39 +00:00
kill Sync with 4.4lite2 1995-09-07 06:28:39 +00:00
ln Remove comment regarding 4.4 symlink behaviour. 1996-04-25 15:44:56 +00:00
ls Changed so that COLUMNS environment variable will override the value 1996-02-14 05:58:53 +00:00
mkdir Use "utility" instead of "command". Modern definitions of these terms 1995-07-25 19:36:36 +00:00
mt "SCSI tape" -> "SCSI", from is 1996-05-26 04:00:49 +00:00
mv convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
pax Fixed typo in comment 1996-05-17 01:07:47 +00:00
ps in findvar(), return after warning about unknown keyword so we don't 1996-05-30 21:16:32 +00:00
pwd Sync with 4.4lite2 1995-09-07 06:42:58 +00:00
rcp Rename struct timespec fields to conform to POSIX.1b 1996-02-01 00:02:24 +00:00
rm Sync with 4.4lite2 1995-09-07 06:42:58 +00:00
rmail Sync with 4.4lite2 1995-09-07 06:42:58 +00:00
rmdir Use "utility" instead of "command". Modern definitions of these terms 1995-07-25 19:36:36 +00:00
sh getopts fixes: 1996-06-04 21:00:09 +00:00
sleep Use "utility" instead of "command". Modern definitions of these terms 1995-07-25 19:36:36 +00:00
stty Use const qualifier as appropriate 1996-05-07 18:20:05 +00:00
sync convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
test Note compatibility `-h' op. (from Rob Windsor; PR#1740) 1996-01-05 12:39:30 +00:00
Makefile Oops, forgot to add "chio" to the subdirs list. 1996-04-23 17:26:32 +00:00
Makefile.inc clean up id tags, etc. 1995-03-21 02:08:51 +00:00