From 4b13cda37bccda18a1a767aee597f05730d11c7c Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 5 Apr 2018 20:31:28 +0900 Subject: 42590: fix detection of OSTYPE in _fmt --- ChangeLog | 2 ++ Completion/Unix/Command/_fmt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3e4c30bf2..d39f7bd79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ 2018-04-05 Jun-ichi Takimoto + * 42590: Completion/Unix/Command/_fmt: fix detection of OSTYPE + * 42585 (cf. 42574: Eitan Adler): Completion/Unix/Command/_tar, Completion/Unix/Type/_tar_archive: complete all compressed archives when libarchive-based tar is being used without diff --git a/Completion/Unix/Command/_fmt b/Completion/Unix/Command/_fmt index 87c7005b9..59d90ff83 100644 --- a/Completion/Unix/Command/_fmt +++ b/Completion/Unix/Command/_fmt @@ -7,7 +7,7 @@ local wopt="[specify maximum line width]:width [75]" local sopt="[don't join short lines\: split only]" args=( -A "-*" "(1 2)-w+$wopt" '*:file:_files' ) -_pick_variant -r variant gnu=GNU unix --version +_pick_variant -r variant gnu=GNU $OSTYPE --version case $variant in gnu) args=( -- cgit 1.4.1