summaryrefslogtreecommitdiff
path: root/completions/man
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-10-13 21:26:13 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-10-13 21:37:34 +0300
commit449c71fa747390535c76c6a71e4b9ee81aab347e (patch)
tree28690f904fa746737f72977bbcfac12dc37b4d04 /completions/man
parent5baebf81d3ede436d63ae38e464dacaa0ad4b486 (diff)
downloadbash-completion-449c71fa747390535c76c6a71e4b9ee81aab347e.tar.gz
Get rid of remaining $UNAME and $USERLAND uses.
Use $OSTYPE and _userland() instead.
Diffstat (limited to 'completions/man')
-rw-r--r--completions/man4
1 files changed, 3 insertions, 1 deletions
diff --git a/completions/man b/completions/man
index 0fa17a0d..0575ba3c 100644
--- a/completions/man
+++ b/completions/man
@@ -1,6 +1,8 @@
# man(1) completion
-[[ $USERLAND == GNU || $UNAME == @(Darwin|FreeBSD|SunOS|Cygwin|OpenBSD) ]] &&
+[[ $OSTYPE == *@(darwin|freebsd|solaris|cygwin|openbsd)* || \
+ $( _userland ) == GNU ]] || return 1
+
_man()
{
local cur prev words cword split