From owner-freebsd-current Sat Jun 17 2: 7:36 2000 Delivered-To: freebsd-current@freebsd.org Received: from grimreaper.grondar.za (grimreaper.grondar.za [196.7.18.138]) by hub.freebsd.org (Postfix) with ESMTP id 96A9137B6DC for ; Sat, 17 Jun 2000 02:07:27 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grimreaper.grondar.za (localhost [127.0.0.1]) by grimreaper.grondar.za (8.9.3/8.9.3) with ESMTP id LAA13791; Sat, 17 Jun 2000 11:06:44 +0200 (SAST) (envelope-from mark@grimreaper.grondar.za) Message-Id: <200006170906.LAA13791@grimreaper.grondar.za> To: chris@calldei.com Cc: Peter Wemm , "Jordan K. Hubbard" , van.woerkom@netcologne.de, current@FreeBSD.ORG Subject: Re: GENERIC from today does not detect system console on my box References: <20000616202921.D98160@holly.calldei.com> In-Reply-To: <20000616202921.D98160@holly.calldei.com> ; from Chris Costello "Fri, 16 Jun 2000 20:29:22 EST." Date: Sat, 17 Jun 2000 11:06:44 +0200 From: Mark Murray Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Friday, June 16, 2000, Peter Wemm wrote: > > Err.. how did you run it? 'perl < MYKERNEL'? If you run 'perl MYKERNEL' > > it will generate nothing because I was kinda lame and didn't know how to do > > argument parsing. :-] > > Couldn't have hurt to ask. > > while (defined($ARGV[0])) { > # ... parse ... > shift; > } Better: while (<>) { #stuff } Handles both the "myprog < file" and the "myprog file1 file2 ..." cases automagically. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message