Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



christos
Tue Jun  4 17:00:16 EDT 1996
Update of /a/cvsroot/src/bin/sh
In directory pain.lcs.mit.edu:/a/tmp/cvs-serv26011

Modified Files:
        options.c 
Log Message:
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.


mhitch
Tue Jun  4 17:08:35 EDT 1996
Update of /a/cvsroot/src/sys/dev/tc
In directory pain.lcs.mit.edu:/a/tmp/cvs-serv26132

Modified Files:
        asc.c 
Log Message:
Fix the oversight that the ASC SCSI adapter can also be on the
Turbochannel as well as the IOASIC.  It should now work on the 5000/200.
Removed the "aborts" which could leave the disk trashed when the abort
rebooted the system.  Fix the data corruption problem by clearing the
FIFO before starting a data transfer.




Home | Main Index | Thread Index | Old Index