about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-04-03 21:27:58 +0000
committerClint Adams <clint@users.sourceforge.net>2001-04-03 21:27:58 +0000
commitec01fb14b45369edadab11e88c5ce32933148c94 (patch)
treee0bb24b646f733fb619b7350b5bc76a060567a54
parentda0179bfb22bff9f159e4a7c76e0f810e84d0b4a (diff)
downloadzsh-ec01fb14b45369edadab11e88c5ce32933148c94.tar.gz
zsh-ec01fb14b45369edadab11e88c5ce32933148c94.tar.xz
zsh-ec01fb14b45369edadab11e88c5ce32933148c94.zip
13899: OSTYPE checking
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_apm9
2 files changed, 7 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 4eed30e4e..e696d1efc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-04-03  Clint Adams  <schizo@debian.org>
+
+	* 13899: Completion/Unix/Command/_apm: add $OSTYPE checking.
+
 2001-04-03  Oliver Kiddle  <opk@zsh.org>
 
 	* 13898, Bart: 13827: Completion/Zsh/Command/_ttyctl,
diff --git a/Completion/Unix/Command/_apm b/Completion/Unix/Command/_apm
index aedc814e0..f4fcaa3ef 100644
--- a/Completion/Unix/Command/_apm
+++ b/Completion/Unix/Command/_apm
@@ -1,9 +1,6 @@
 #compdef apm
 
-# this needs intelligence
-local kludge=linux
-
-if [[ $kludge == "linux" ]]
+if [[ $OSTYPE == linux* ]]
 then
 
 _arguments -C -s \
@@ -22,7 +19,7 @@ _arguments -C -s \
     '(--ignore)-i[tell the system to ignore system-generated APM message]' \
     '(-i)--ignore[tell the system to ignore system-generated APM message]'
 
-elif [[ $kludge == "freebsd4.1" ]]
+elif [[ $OSTYPE == freebsd* ]]
 then
 
 _arguments -C \
@@ -38,7 +35,7 @@ _arguments -C \
      '-Z[transition system into standby mode]' \
      '-z[suspend the system]'
 
-elif [[ $kludge == "openbsd2.7" ]]
+elif [[ $OSTYPE == openbsd* ]]
 then
 
 _arguments -C \