about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Completion/Unix/Command/_fmt2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e4c30bf2..d39f7bd79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,8 @@
 
 2018-04-05  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
 
+	* 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=(