Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!toysrus!dcm From: dcm@toysrus.uucp (dcm) Newsgroups: comp.unix.aix Subject: Re: getopt (3) problem? Message-ID: <3489@awdprime.UUCP> Date: 13 Sep 90 16:13:06 GMT References: <1990Sep12.011152.26067@maverick.ksu.ksu.edu> <4053@auspex.auspex.com> Sender: news@awdprime.UUCP Reply-To: dcm@toysrus.austin.ibm.com (Craig Miller) Organization: IBM AWD, Austin, TX Lines: 15 In article <4053@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>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 *Of course* EOF is -1 on Aix. We didn't mess with that! -------- Craig Miller, contractor @ IBM AWD, Austin (I don't speak for IBM) UUCP: ..!uunet!cs.utexas.edu!ibmaus!auschs!toysrus.austin.ibm.com!dcm "Just because it works doesn't means it's right, stupid!" "Don't believe .signature files."