* [PATCH] _fmt: use $OSTYPE in _pick_variant
@ 2018-04-05 9:11 Jun T
0 siblings, 0 replies; only message in thread
From: Jun T @ 2018-04-05 9:11 UTC (permalink / raw)
To: zsh-workers
fix a simple bug in _fmt
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=(
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-05 9:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-05 9:11 [PATCH] _fmt: use $OSTYPE in _pick_variant Jun T
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).