Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 12860780DEC for <~alpine/devel@lists.alpinelinux.org>; Thu, 30 Jun 2022 07:40:09 +0000 (UTC) Received: by nautica.notk.org (Postfix, from userid 108) id D3908C009; Thu, 30 Jun 2022 09:40:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1656574808; bh=0x4oBmwspbyKeClDLqcTX2U/N8rFrU4s024csA8qSAU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rmWliWT4pTIU1F2CSCsqvZttRNZXo+do5hFQ/4VgSc93bjxXhcKMNFljP4Sl0N8pB M3esEm6jAl5MvYmNDxEp5xm1AbQlByQDYfegDsv1AqZJrlFCVmLrYVwVVgTDTkYTpd KHTnY/WaU6lBuOm9z9Q+omzjlz2bX2USp6lRf2dCFeC8glhvUu2P2ZTkqiidtAcvz5 B0CEE+EMqe8Kp/8uRQV5/jZBYAYqPh4JBGTP1NN5vkdk70KGwNJthsbWrgMCm9nhSg FOWRJILEY4Bj74PACe9YXNc14T6uUEkvLx1BNcEHzGSbuply56PWgwJGI7DbOLrJrK lnwqbsf2VBPhQ== X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on nautica.notk.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id CD562C009; Thu, 30 Jun 2022 09:40:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1656574808; bh=0x4oBmwspbyKeClDLqcTX2U/N8rFrU4s024csA8qSAU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rmWliWT4pTIU1F2CSCsqvZttRNZXo+do5hFQ/4VgSc93bjxXhcKMNFljP4Sl0N8pB M3esEm6jAl5MvYmNDxEp5xm1AbQlByQDYfegDsv1AqZJrlFCVmLrYVwVVgTDTkYTpd KHTnY/WaU6lBuOm9z9Q+omzjlz2bX2USp6lRf2dCFeC8glhvUu2P2ZTkqiidtAcvz5 B0CEE+EMqe8Kp/8uRQV5/jZBYAYqPh4JBGTP1NN5vkdk70KGwNJthsbWrgMCm9nhSg FOWRJILEY4Bj74PACe9YXNc14T6uUEkvLx1BNcEHzGSbuply56PWgwJGI7DbOLrJrK lnwqbsf2VBPhQ== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id c0186adb; Thu, 30 Jun 2022 07:40:04 +0000 (UTC) Date: Thu, 30 Jun 2022 16:39:49 +0900 From: Dominique Martinet To: "Daniel F. Dickinson" Cc: ~alpine/devel@lists.alpinelinux.org Subject: Re: Fixing shell script libraries like /lib/libalpine.sh Message-ID: References: <4caa8c5f-7ebf-ad2f-0e92-29428785fe60@wildtechgarden.ca> <2512fab8-7ae4-c554-32a9-333a2b08813c@wildtechgarden.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2512fab8-7ae4-c554-32a9-333a2b08813c@wildtechgarden.ca> Daniel F. Dickinson wrote on Thu, Jun 30, 2022 at 03:31:50AM -0400: > This calls setup-ntp with NTPOPTS as the parameter; perhaps the issue is > the quoting there. In any event, I've obviously got to do some more > complete troubleshooting, fix, and test thereof. The problem is setup-ntp sets 'resp' from parsing -c in getopts loop, but actually expects it to be the first positional parameter e.g. 'setup-ntp chrony' as it checks $# and assigns resp from $1 regardless of $#. It shouldn't be too hard to make it work with either -c or first positional parameter, letting you send a MR on gitlab :) (oh, and I use reply to all and think most others do as well -- but I don't know if it really is a rule or just habits from other lists where non-subscribers can post) -- Dominique