From owner-freebsd-stable@freebsd.org Mon Aug 24 14:22:24 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 F35F19C2E28 for ; Mon, 24 Aug 2015 14:22:24 +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 D8EEDF4A for ; Mon, 24 Aug 2015 14:22:24 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.ysv.freebsd.org (Postfix) id D7ED49C2E27; Mon, 24 Aug 2015 14:22:24 +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 D78659C2E26 for ; Mon, 24 Aug 2015 14:22:24 +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 8638FF49; Mon, 24 Aug 2015 14:22:24 +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 E56851534C6; Mon, 24 Aug 2015 16:22:19 +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 aW4rvuDLVBLc; Mon, 24 Aug 2015 16:21:52 +0200 (CEST) Received: from [192.168.101.176] (vpn.ecoracks.nl [31.223.170.173]) by smtp.digiware.nl (Postfix) with ESMTPA id 159A4153430; Mon, 24 Aug 2015 16:21:51 +0200 (CEST) Subject: Re: regression from previous version of pw To: Baptiste Daroussin References: <55DB2100.4070304@digiware.nl> <20150824140133.GG93486@ivaldir.etoilebsd.net> <55DB2521.5030502@digiware.nl> <20150824141644.GI93486@ivaldir.etoilebsd.net> Cc: "stable@freebsd.org" From: Willem Jan Withagen Message-ID: <55DB2881.2030202@digiware.nl> Date: Mon, 24 Aug 2015 16:21:53 +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: <20150824141644.GI93486@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:22:25 -0000 On 24-8-2015 16:16, Baptiste Daroussin wrote: > On Mon, Aug 24, 2015 at 04:07:29PM +0200, Willem Jan Withagen wrote: >> 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. We the text now, was enough to make me look at the man page. So it depends on how much error info you give with other problems. I'm all for more informational error messages. I don't think the Unixs are (used to be) in that mode. > I changed that when bringing in the -R stuff so long ago. Illegal option is made > by getopt(3) directly but I can make it nicer and show a message that explains. my code had services running php53. :( So it is old... So that is probably why I did not get bitten earlier. Ciao, --WjW