about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-06-05 11:18:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-06-05 11:18:01 +0000
commitdfabf50cf1ee78d5a1849fd19409ee23150506c4 (patch)
tree4bb12a54d1abf40ef4378ea79a2ef6d66e34a468 /Functions
parent72529e4fa606e9ccb6b9200df2d696782c742ac7 (diff)
downloadzsh-dfabf50cf1ee78d5a1849fd19409ee23150506c4.tar.gz
zsh-dfabf50cf1ee78d5a1849fd19409ee23150506c4.tar.xz
zsh-dfabf50cf1ee78d5a1849fd19409ee23150506c4.zip
27305: fix GNU man option handling in run-help
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/run-help5
1 files changed, 2 insertions, 3 deletions
diff --git a/Functions/Misc/run-help b/Functions/Misc/run-help
index f5464065d..837ce1ff0 100644
--- a/Functions/Misc/run-help
+++ b/Functions/Misc/run-help
@@ -8,8 +8,7 @@
 #	autoload run-help
 #
 
-emulate -R zsh
-setopt localoptions
+emulate -RL zsh
 
 local HELPDIR="${HELPDIR:-/usr/share/zsh/$ZSH_VERSION/help}"
 
@@ -103,7 +102,7 @@ do
 		done
 		eval "run-help-$1:t ${(q@)cmd_args[2,-1]}"
 	    else
-		man $@:t
+		POSIXLY_CORRECT=1 man $@:t
 	    fi
 	fi
 	;;