From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 25 11:42:58 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 104CC106566C for ; Wed, 25 Jan 2012 11:42:58 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 929238FC14 for ; Wed, 25 Jan 2012 11:42:57 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id g1so5992192wer.13 for ; Wed, 25 Jan 2012 03:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=uj4c2z6pAf09N4yL/d1Hbskt3Mujyg68caHvfBS931o=; b=BXSuaNneHrp2E5DTCVhZGmCzbha00H3lK6u+1Hy5La8bQYE1AmnwnLeDSpyFBXIQk7 +roh/y5BJI3VUu+yF6JeXzyo1+LXtiu/YJxdpTCRtzftI3uSs1RJXymo1baAmNE5c0oi mQOfgb4QQczcRAFa35sB3IO/jpJZFqK8/0Fk4= Received: by 10.216.132.211 with SMTP id o61mr2663673wei.58.1327491776264; Wed, 25 Jan 2012 03:42:56 -0800 (PST) Received: from geosci (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id dr5sm759926wib.0.2012.01.25.03.42.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jan 2012 03:42:55 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Wed, 25 Jan 2012 12:42:51 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Damien Fleuriot Message-ID: <20120125114251.GA53037@geosci> References: <20120125104423.GA52830@geosci> <4F1FDED2.7040003@my.gd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F1FDED2.7040003@my.gd> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org Subject: Re: mdconfig(8) argument parsing. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2012 11:42:58 -0000 On Wed, Jan 25, 2012 at 11:52:02AM +0100, Damien Fleuriot wrote: > On 1/25/12 11:44 AM, Edward Tomasz NapieraƂa wrote: > > Patch below changes the way mdconfig(8) parses its arguments: > > it removes the ordering requirement and makes error messages > > more descriptive; it also makes the code more readable by > > getting rid of the 'cmdline' variable. > > > > Now, the mdconfig(8) syntax is somewhat weird, and I'm not sure > > I tested all the ways people use it. Thus, testing is welcome. > > > > http://people.freebsd.org/~trasz/mdconfig-parsing.diff > > > > Against what version is this patched ? > > We're running 8.2-RELEASE here at work, I've got private boxes with > 8.2-STABLE, and 2 test ones with 9.0-RELEASE. Against 10.0-CURRENT (i.e. HEAD), but it should work on other versions as well. -- If you cut off my head, what would I say? Me and my head, or me and my body?