about summary refs log tree commit diff
path: root/Util
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2013-11-12 22:38:16 -0800
committerBart Schaefer <schaefer@zsh.org>2013-11-12 22:38:16 -0800
commit48539541f6675c5424bd2785f42fe3aada428a05 (patch)
tree17e86908969baf8f0af6c9a4c1b85172c1bd7c35 /Util
parent590dd6c954059b2231f40edeb0e400a230abe0a7 (diff)
downloadzsh-48539541f6675c5424bd2785f42fe3aada428a05.tar.gz
zsh-48539541f6675c5424bd2785f42fe3aada428a05.tar.xz
zsh-48539541f6675c5424bd2785f42fe3aada428a05.zip
31966: skip introductory paragraphs when processing "man zshbuiltins".
Diffstat (limited to 'Util')
-rwxr-xr-xUtil/helpfiles4
1 files changed, 2 insertions, 2 deletions
diff --git a/Util/helpfiles b/Util/helpfiles
index 530bb15af..ba1c50a38 100755
--- a/Util/helpfiles
+++ b/Util/helpfiles
@@ -123,7 +123,7 @@ $print = 0;
 
 sub namesub {
     local($cmd) = shift;
-    if ($cmd =~ /^\w+$/) {
+    if ($cmd =~ /^\w*$/ && lc($cmd) eq $cmd) {
 	$cmd;
     } elsif ($cmd eq '.') {
 	'dot';
@@ -261,6 +261,6 @@ foreach $file (<*>) {
 close(LINKFILE) unless($linkfile eq '');
 
 # Make one sanity check
-&Die('not all files were properly generated') unless(-r 'zmodload');
+&Die('not all files were properly generated') unless(-r 'ztcp');
 
 __END__