From 8bd46bf2a241e0e3a32a24ce2333095214b3b77a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 19 Jun 2020 15:32:13 +0000 Subject: 46044 (tweaked per Matthew): _units: Correct the path to the units data file on Debian with units 2.00 and newer and on FreeBSD. --- ChangeLog | 6 ++++++ Completion/Unix/Command/_units | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 99e07370d..79fa9c085 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-06-19 Daniel Shahaf + + * 46044 (tweaked per Matthew): Completion/Unix/Command/_units: + Correct the path to the units data file on Debian with units + 2.00 and newer and on FreeBSD. + 2020-06-18 Daniel Shahaf * 46067: Test/A05execution.ztst: Add a unit test for diff --git a/Completion/Unix/Command/_units b/Completion/Unix/Command/_units index bea77ae67..6d86f4dc3 100644 --- a/Completion/Unix/Command/_units +++ b/Completion/Unix/Command/_units @@ -40,10 +40,12 @@ 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/units/definitions.units # on Debian, units 2.00 and newer /usr/local/share/units.dat # GNU DIY install /usr/share/lib/unittab # Solaris - /usr/share/misc/units.lib # BSD + /usr/share/misc/units.lib # OpenBSD [as of 2020]; also FreeBSD 9.1 + /usr/share/misc/definitions.units # FreeBSD 12.1 + /usr/share/misc/units.dat # on Debian, units 1.88 and older ) datfile=${opt_args[-f]:-${opt_args[--file]}} -- cgit 1.4.1