Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!bu.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.aix Subject: Re: getopt (3) problem? Message-ID: <4053@auspex.auspex.com> Date: 12 Sep 90 18:22:58 GMT References: <1990Sep12.011152.26067@maverick.ksu.ksu.edu> Organization: Auspex Systems, Santa Clara Lines: 9 >In compiling and running some things, I have found that getopt doesn't act >right. When it runs out of parameters instead of returning an EOF it returns >a -1. You mean EOF *isn't* -1 on whatever kind of system you're using? (It's presumably some flavor of AIX system; since you say it works OK on PS/2s and 370's, if you mean it works OK on those systems under AIX, I assume the system in question is an RT or RS6000.) EOF is #defined as -1 in all the UNIX systems with which I'm familiar.