From owner-freebsd-questions  Sat May 10 22:37:07 1997
Return-Path: <owner-questions>
Received: (from root@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id WAA13242
          for questions-outgoing; Sat, 10 May 1997 22:37:07 -0700 (PDT)
Received: from iceberg.anchorage.net. (root@iceberg.anchorage.net [207.14.72.150])
          by hub.freebsd.org (8.8.5/8.8.5) with SMTP id WAA13237
          for <questions@freebsd.org>; Sat, 10 May 1997 22:37:04 -0700 (PDT)
Received: from aak.anchorage.net (ai-132 [207.14.72.132]) by iceberg.anchorage.net. (8.6.11/8.7.3) with SMTP id UAA28568 for <questions@freebsd.org>; Sat, 10 May 1997 20:34:43 -0800
Date: Sat, 10 May 1997 21:27:23 -0800 (AKDT)
From: Steve Howe <un_x@anchorage.net>
X-Sender: abc@aak.anchorage.net
To: freebsd-questions <questions@freebsd.org>
Subject: getopts
Message-ID: <Pine.BSF.3.95q.970510212253.17799A-100000@aak.anchorage.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-questions@freebsd.org
X-Loop: FreeBSD.org
Precedence: bulk


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?
-------------------------------------------------------------------------