Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _units: Correct the path to the units data file on Debian with units 2.00 and newer.
- X-seq: zsh-workers 45996
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- 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
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
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]}}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author