zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
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	[thread overview]
Message-ID: <20200606060645.10772-1-danielsh@tarpaulin.shahaf.local2> (raw)

---
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]}}

             reply	other threads:[~2020-06-06  6:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-06  6:06 Daniel Shahaf [this message]
2020-06-12  9:04 ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200606060645.10772-1-danielsh@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).