function returns the next line from the file
/etc/shells, opening the file if necessary.
The line should contain
the pathname of a valid user shell.
If /etc/shells does not exist or
behaves as if /bin/sh and
/bin/csh were listed in the file.
function rewinds /etc/shells.
function closes /etc/shells.
function returns a NULL pointer on end-of-file.