Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _fmt: use $OSTYPE in _pick_variant



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=(




Messages sorted by: Reverse Date, Date, Thread, Author