From owner-freebsd-stable@freebsd.org Mon Aug 24 14:07:44 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 111829C2812 for ; Mon, 24 Aug 2015 14:07:44 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EBC712D1 for ; Mon, 24 Aug 2015 14:07:43 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.ysv.freebsd.org (Postfix) id E8D2A9C2811; Mon, 24 Aug 2015 14:07:43 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E867E9C2810 for ; Mon, 24 Aug 2015 14:07:43 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7A902CE; Mon, 24 Aug 2015 14:07:42 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id C235B153465; Mon, 24 Aug 2015 16:07:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7LBz-ug3D1kw; Mon, 24 Aug 2015 16:07:27 +0200 (CEST) Received: from [192.168.101.176] (vpn.ecoracks.nl [31.223.170.173]) by smtp.digiware.nl (Postfix) with ESMTPA id AF1E1153430; Mon, 24 Aug 2015 16:07:27 +0200 (CEST) Subject: Re: regression from previous version of pw To: Baptiste Daroussin References: <55DB2100.4070304@digiware.nl> <20150824140133.GG93486@ivaldir.etoilebsd.net> Cc: "stable@freebsd.org" From: Willem Jan Withagen Message-ID: <55DB2521.5030502@digiware.nl> Date: Mon, 24 Aug 2015 16:07:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150824140133.GG93486@ivaldir.etoilebsd.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2015 14:07:44 -0000 On 24-8-2015 16:01, Baptiste Daroussin wrote: > On Mon, Aug 24, 2015 at 03:49:52PM +0200, Willem Jan Withagen wrote: >> Hi, >> >> In the previous version before Bapt upgraded pw(8) I was allowed to do >> pw useradd -V /etc >> >> Even though the manual page instructed otherwise. >> >> The new version sticks to the manual page and generates: >> pw: illegal option -- V >> >> I'm going to change the scripts, but perhaps others will be bitten too. >> Up to Bapt to decide what to do with this. > > The code has been changed to respect what the manual and the help output was > showing: -V should be passed before the subcommand You just changed that now? Or my version is lagging behind? Text is much more clear than the 'illegal option' espacially now there is also the -R stuff. So it made me wonder. > The reason for this is was to make the code more easily maintenable and > understandable. You fixed the code, so it is your prerogative. > if really that is too painful I can allow again -V to be also passed after the > subcommand but at the price of complicating the code. Nope, I've already changed the code I have. Was about 5 lines in a shell script. My comment was more as general notification, in case somebody else ran into the same. Nobody thus far ran into this, so it won't be major anyways. Thanx, --WjW