From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11872 invoked from network); 6 Jun 2020 06:07:32 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 6 Jun 2020 06:07:32 -0000 Received: (qmail 13857 invoked by alias); 6 Jun 2020 06:07:26 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45996 Received: (qmail 10078 invoked by uid 1010); 6 Jun 2020 06:07:26 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25828. spamassassin: 3.4.4. Clear:RC:0(66.111.4.28):SA:0(-2.6/5.0):. Processed in 2.033182 secs); 06 Jun 2020 06:07:26 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeggedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgogfeguddtqddvjeculdegtddmnecujfgurhephf fvufffkffoggfgsedtkedttdertddtnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghf uceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrh hnpeffhfegtedtueekuefhuddvjeevfedtkeetjeetvdfhhfegkeevgfevtdelffegfeen ucfkphepjeelrddujeeirdefledrieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] _units: Correct the path to the units data file on Debian with units 2.00 and newer. Date: Sat, 6 Jun 2020 06:06:45 +0000 Message-Id: <20200606060645.10772-1-danielsh@tarpaulin.shahaf.local2> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmail-Scanner-2.11: added fake Content-Type header Content-Type: text/plain --- units.dat was renamed definitions.units in 2013 or earlier. I've fixed the path for Debian, but don't know whether any of the other paths should be fixed too. Cheers, Daniel Completion/Unix/Command/_units | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Completion/Unix/Command/_units b/Completion/Unix/Command/_units index bea77ae67..6682c6d79 100644 --- a/Completion/Unix/Command/_units +++ b/Completion/Unix/Command/_units @@ -40,10 +40,11 @@ local -a testfiles testfiles=( /usr/share/units.dat # GNU on Fedora /usr/share/units/units.dat # on gentoo - /usr/share/misc/units.dat # on Debian + /usr/share/misc/units.dat # on Debian, units 1.88 and older /usr/local/share/units.dat # GNU DIY install /usr/share/lib/unittab # Solaris /usr/share/misc/units.lib # BSD + /usr/share/units/definitions.units # on Debian, units 2.00 and newer ) datfile=${opt_args[-f]:-${opt_args[--file]}}