Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 1997 21:27:23 -0800 (AKDT)
From:      Steve Howe <un_x@anchorage.net>
To:        freebsd-questions <questions@freebsd.org>
Subject:   getopts
Message-ID:  <Pine.BSF.3.95q.970510212253.17799A-100000@aak.anchorage.net>

next in thread | raw e-mail | index | archive | help

how does one get "filename" in getopts?
since no positional parameters ($1-$9) are set,
when option parsing is done, where is the "filename"?
i've searched the web everywhere, checked all the docs
and maillists, but don't see any good info on getopts.

# script -abc filename
----------------------
while getopts abc i; do

	deal with options -abc
done
now where is my filename?
-------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970510212253.17799A-100000>