ARGS="-eotty="
GOOD=0
EVALFN=1

# the UNIX spec allows:
#
# /dev/ttyS0   as ttyS0
# /dev/ttyS0   as S0          (OK to chop a leading "tty")
# /dev/console as console
# /foo/bar     as bar or /foo/bar  (poorly unspecified)
# -nothing-    as ? or -           (poorly unspecified, we use '?')
#
# Also, the format must agree with what "who" uses.
# Linux "who" doesn't strip "tty" off of /dev/ttyS0, etc.,
# so that's illegal in a Linux environment.
#
# junk the '?' to avoid shell wildcard expansion

evalfn () {
  for i in `tr -d '?' < stdout | sort -u` ; do
    if [ ! -c /dev/$i -a ! -c /$i ] ; then
      return 1
    fi
  done
  return 0
}
